_known_hosts_real: Replace "${HOME}" with "~" to make code more compact.

This commit is contained in:
Igor Murzov 2011-11-05 19:51:07 +03:00
parent 74d80d17f9
commit bc2d3c9a34

View File

@ -1355,8 +1355,7 @@ _known_hosts_real()
[ -r "$configfile" ] &&
config+=( "$configfile" )
else
for i in /etc/ssh/ssh_config "${HOME}/.ssh/config" \
"${HOME}/.ssh2/config"; do
for i in /etc/ssh/ssh_config ~/.ssh/config ~/.ssh2/config; do
[ -r "$i" ] && config+=( "$i" )
done
fi