Skip non-folder entries on cleanup.

This commit is contained in:
Joachim Bauch committed 2016-02-16 16:53:47 +01:00
1 parent dec95fff15
commit f9430025bc
1 file changed
+3
+3
View File
@@ -675,6 +675,9 @@ command_cleanup() {
# Loop over all certificate directories
for certdir in "${BASEDIR}/certs/"*; do
# Skip if entry is not a folder
[[ -d "${certdir}" ]] || continue
# Get certificate name
certname="$(basename "${certdir}")"