Browse Source

improve matching of Hosts: 'Host *' won't be matched anymore

master
mxmehl 6 years ago
parent
commit
7d4dd1f9e2
  1. 2
      mnt-sftp.sh

2
mnt-sftp.sh

@ -51,7 +51,7 @@ do
done
# Read all hosts from ~/.ssh/config
SSHLIST=$(grep "Host\s" $SSHCONFIG | awk -F' ' '{ print $2 }')
SSHLIST=$(grep -E "Host\s[[:alnum:]]" $SSHCONFIG | awk -F' ' '{ print $2 }')
# Choose preconfigured HOST to mount
function mount {

Loading…
Cancel
Save