]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
Skip non-folder entries on cleanup. 139/head
authorJoachim Bauch <bauch@struktur.de>
Tue, 16 Feb 2016 15:53:47 +0000 (16:53 +0100)
committerJoachim Bauch <bauch@struktur.de>
Tue, 16 Feb 2016 15:53:47 +0000 (16:53 +0100)
letsencrypt.sh

index 8e95c35abf73ee8c6b306dae5a12c429638560a6..dc164643b357dfb9ee06e08a117bf8be6084c3a2 100755 (executable)
@@ -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}")"