File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ function ssh_resolve() {
70
70
# Host regex
71
71
# HostName resolved.domain.com
72
72
read -r -a ssh_array <<< " ${ssh_line}"
73
- ssh_optcode=" ${ssh_array[0]} "
74
- if [[ ${ ssh_optcode^^} == HOST ]]; then
73
+ ssh_optcode=" $( echo " $ {ssh_array[0]}" | tr ' [:upper:] ' ' [:lower:] ' ) "
74
+ if [[ $ssh_optcode == HOST ]]; then
75
75
# Host
76
76
ssh_found=false
77
77
# Iterate through aliases looking for a match
@@ -84,7 +84,7 @@ function ssh_resolve() {
84
84
break
85
85
fi
86
86
done
87
- elif $ssh_found && [[ ${ ssh_optcode^^} == HOSTNAME ]]; then
87
+ elif $ssh_found && [[ $ssh_optcode == HOSTNAME ]]; then
88
88
# HostName, but only if ssh_found is true (the last Host entry matched)
89
89
# Replace all instances of %h with the Host alias
90
90
echo " ${ssh_array[1]//% h/ $domain } "
You can’t perform that action at this time.
0 commit comments