From 10181b39532ce137894167fc743e86515a5c1182 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 17 Oct 2013 14:55:19 +0200 Subject: [PATCH] icinga2-build-ca: Fix file count. --- pki/icinga2-build-ca | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0