v1
This commit is contained in:
commit
8d4915543e
132 files changed
+20628
No files matched your search
@@ -0,0 +1,12 @@
|
||||
# Uninstall in dry-run mode lists everything netssh created.
|
||||
config <<'EOF'
|
||||
resolver: {strategies: [primary_ip]}
|
||||
EOF
|
||||
check "refresh" netssh cache refresh
|
||||
check "hook install" netssh hook install --shell bash
|
||||
expect_out "lists the profile" ".bashrc" netssh uninstall --dry-run
|
||||
expect_out "lists the config" "netssh.yaml" netssh uninstall --dry-run
|
||||
expect_out "lists the cache" ".cache/netssh" netssh uninstall --dry-run
|
||||
out=$(netssh uninstall --dry-run --keep-config 2>&1)
|
||||
[[ $out != *"netssh.yaml"* ]] && ok "--keep-config keeps the config" || bad "--keep-config keeps the config" "$out"
|
||||
expect_out "nothing was removed" "netssh shell-init" cat "$HOME/.bashrc"
|
||||
Reference in new issue
Block a user