summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ba59a33)
find doesn't return an error if there are no matches.
# {{{ display hostkeys of SSH server
config_display_ssh_fingerprints() {
# {{{ display hostkeys of SSH server
config_display_ssh_fingerprints() {
- if ! find /etc/ssh/ -name ssh_host_\*_key >/dev/null 2>&1 ; then
+ if ! ls /etc/ssh/ssh_host_\*_key >/dev/null 2>&1 ; then
return 0 # no SSH host keys present
fi
return 0 # no SSH host keys present
fi