myssh: Run Connect before other commands
This commit is contained in:
parent
c5f889bb4d
commit
5c9bdad642
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue