Correct mistake on ~/ vs. $HOME/

This commit is contained in:
marco 2021-11-03 13:41:02 +01:00
parent 3dd87f641d
commit 068400457c

2
sshin
View File

@ -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"