From: Michael Prokop Date: Tue, 2 Oct 2012 07:43:45 +0000 (+0200) Subject: config_display_ssh_fingerprints: adjust check for present host keys X-Git-Tag: v0.9.59~2 X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=1dc85ae94249724ee039afb3deaff901d2bccc1b config_display_ssh_fingerprints: adjust check for present host keys find doesn't return an error if there are no matches. --- diff --git a/autoconfig.functions b/autoconfig.functions index 19e7459..2736153 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1126,7 +1126,7 @@ fi # {{{ 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