]> granicus.if.org Git - icinga2/commitdiff
icinga2-build-ca: Fix file count.
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 17 Oct 2013 12:55:19 +0000 (14:55 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 17 Oct 2013 12:55:19 +0000 (14:55 +0200)
pki/icinga2-build-ca

index bfc152020ed22d497780752f8ddac87f710e89d4..ef7508afeca1b8dacbaa7cf8b3f3ea482ecc663a 100755 (executable)
@@ -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