Correct mistake on ~/ vs. $HOME/
This commit is contained in:
parent
3dd87f641d
commit
068400457c
2
sshin
2
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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user