X-Git-Url: https://code.delx.au/monosys/blobdiff_plain/a1b3a9a05cbf707d347a9cc69df209e7b4a1b8cf..189cd1165454dc4b875e1874ef385c41928c2a5e:/hacks/ssh-screen-wrapper?ds=sidebyside diff --git a/hacks/ssh-screen-wrapper b/hacks/ssh-screen-wrapper index 662f08c..fe083cc 100755 --- a/hacks/ssh-screen-wrapper +++ b/hacks/ssh-screen-wrapper @@ -6,7 +6,7 @@ hostname="$(basename "$0")" local_hostname="${hostname}.localnet" public_hostname="p${hostname}" -if grep -q "^Host ${hostname}$" ~/.ssh/config; then +if grep -Eq "^Host ${hostname}\b" ~/.ssh/config; then true elif ping -c1 -t1 "$local_hostname" &> /dev/null; then hostname="$local_hostname"