diff --git a/gumssh b/gumssh index 8be1bd5..c7e6a92 100755 --- a/gumssh +++ b/gumssh @@ -16,7 +16,7 @@ hostn_array=() # Read HostNames from ssh config and store them in hostn_array. while IFS= read -r line; do - if [[ "$line" == *"Host "* ]]; then + if [[ "$line" == *"Host "* ]] && [[ "$line" != *"Host *" ]]; then hostn=$(echo "$line" | awk '{ print $2 }') hostn_array+=("$hostn") fi