mirror of
https://codeberg.org/hyperreal/bin
synced 2024-11-01 08:33:06 +01:00
Don't select wildcard entry
This commit is contained in:
parent
453bc5694d
commit
5603e42817
2
gumssh
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user