From 5603e4281760a122cd738bc0d17bc4825246a772 Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Sun, 18 Aug 2024 20:29:54 -0500 Subject: [PATCH] Don't select wildcard entry --- gumssh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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