Fix _known_hosts_real: awkcurd > curd

This commit is contained in:
Freddy Vulto 2010-01-06 09:31:31 +01:00
parent db739401f7
commit d5d7592169

View File

@ -1360,7 +1360,7 @@ _known_hosts_real()
# dont fork any processes, because in a cluster environment, # dont fork any processes, because in a cluster environment,
# there can be hundreds of hostkeys # there can be hundreds of hostkeys
for i in "${khd[@]}" ; do for i in "${khd[@]}" ; do
if [[ "$i" == *key_22_$awkcurd*.pub && -r "$i" ]]; then if [[ "$i" == *key_22_$curd*.pub && -r "$i" ]]; then
host=${i/#*key_22_/} host=${i/#*key_22_/}
host=${host/%.pub/} host=${host/%.pub/}
COMPREPLY=( "${COMPREPLY[@]}" $host ) COMPREPLY=( "${COMPREPLY[@]}" $host )