diff --git a/script/myssh b/script/myssh index 4ecf047..a384122 100755 --- a/script/myssh +++ b/script/myssh @@ -63,13 +63,12 @@ run_client() { MAIN_OPTION=$1 shift +# ensure connection +connect case $MAIN_OPTION in ls) ls_hosts;; connect) - # ensure connection - connect - # check if host is valid TARGET_HOST=$1 shift