From 6d80e3895d33c9c4b7c1491ebb0bb7a5af718d92 Mon Sep 17 00:00:00 2001 From: Oleg Kurapov Date: Mon, 5 Nov 2018 17:37:41 +0300 Subject: [PATCH] Extra params handling in SSH wrapper. Closes krishnasrinivas/wetty#130 --- bin/ssh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ssh b/bin/ssh index 2ee4207..1617700 100755 --- a/bin/ssh +++ b/bin/ssh @@ -1,6 +1,6 @@ #!/usr/bin/env sh -userAtAddress="$1" +userAtAddress="$1"; shift USER=$(echo "$userAtAddress" | cut -d"@" -f1); HOST=$(echo "$userAtAddress" | cut -d"@" -f2); @@ -9,7 +9,7 @@ then printf "Enter your username: " read -r USER USER=$(echo "${USER}" | tr -d '[:space:]') - ssh "$USER"@"$HOST" + ssh "$USER"@"$HOST" ${@} else - ssh "$userAtAddress" + ssh "$userAtAddress" ${@} fi