From 5c9bdad642313ffa016c38e3c8d3393679c8c10b Mon Sep 17 00:00:00 2001 From: Kevin Baensch Date: Thu, 17 Nov 2022 15:26:23 +0100 Subject: [PATCH] myssh: Run Connect before other commands --- script/myssh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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