From 068400457c389a9b53ed27ebaba74b780bbdcd4d Mon Sep 17 00:00:00 2001 From: marco Date: Wed, 3 Nov 2021 13:41:02 +0100 Subject: [PATCH] Correct mistake on ~/ vs. $HOME/ --- sshin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshin b/sshin index 01086ac..58539ca 100755 --- a/sshin +++ b/sshin @@ -20,7 +20,7 @@ if [[ $1 =~ $re ]] then command="${command}192.168.1.$1" else - [[ $(uname) = "Linux" ]] && ports_file="$HOME/.local/share/sshin/port_association" || ports_file="~/sshin/port_association" + [[ $(uname) = "Linux" ]] && ports_file="$HOME/.local/share/sshin/port_association" || ports_file="$HOME/sshin/port_association" port=$(grep $1 $ports_file | awk '{print $NF}') command="${command}$1" [[ -n $port ]] && command="${command} -p $port"