Correct mistake on ~/ vs. $HOME/
This commit is contained in:
2
sshin
2
sshin
@@ -20,7 +20,7 @@ if [[ $1 =~ $re ]]
|
|||||||
then
|
then
|
||||||
command="${command}192.168.1.$1"
|
command="${command}192.168.1.$1"
|
||||||
else
|
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}')
|
port=$(grep $1 $ports_file | awk '{print $NF}')
|
||||||
command="${command}$1"
|
command="${command}$1"
|
||||||
[[ -n $port ]] && command="${command} -p $port"
|
[[ -n $port ]] && command="${command} -p $port"
|
||||||
|
Reference in New Issue
Block a user