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"