From 1dc85ae94249724ee039afb3deaff901d2bccc1b Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 2 Oct 2012 09:43:45 +0200 Subject: [PATCH] config_display_ssh_fingerprints: adjust check for present host keys find doesn't return an error if there are no matches. --- autoconfig.functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.1.4