From: Gunnar Beutner Date: Thu, 17 Oct 2013 12:55:19 +0000 (+0200) Subject: icinga2-build-ca: Fix file count. X-Git-Tag: v0.0.3~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10181b39532ce137894167fc743e86515a5c1182;p=icinga2 icinga2-build-ca: Fix file count. --- diff --git a/pki/icinga2-build-ca b/pki/icinga2-build-ca index bfc152020..ef7508afe 100755 --- a/pki/icinga2-build-ca +++ b/pki/icinga2-build-ca @@ -3,7 +3,7 @@ source $(dirname -- $0)/icinga2-pkifuncs check_pki_dir -if [ $(ls -l -- $ICINGA_CA | wc -l) != 0 ]; then +if [ $(ls -1 -- $ICINGA_CA | wc -l) != 0 ]; then echo "The Icinga CA directory must be empty." >&2 exit 1 fi