diff --git a/scripts/gentls_cert.in b/scripts/gentls_cert.in index 18c762fe1a..1c40133989 100644 --- a/scripts/gentls_cert.in +++ b/scripts/gentls_cert.in @@ -126,7 +126,7 @@ generate_cert() { remove_ca() { echo "Removing CA" - if [ ! -d "${CONFDIR}/CA" ]; then + if [ -d "${CONFDIR}/CA" ]; then rm "${CONFDIR}/CA/"* rmdir "${CONFDIR}/CA" fi