]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
don't try to delete DOMAINS_TXT on early failure when not yet set
authorLukas Schauer <lukas@schauer.so>
Tue, 26 Jan 2016 16:49:28 +0000 (17:49 +0100)
committerLukas Schauer <lukas@schauer.so>
Tue, 26 Jan 2016 16:49:28 +0000 (17:49 +0100)
letsencrypt.sh

index 9b5dba022e900bf01842a379519caf1cafe24c70..dad47669283b9371ed6262ae5f70f0cf34077f67 100755 (executable)
@@ -251,7 +251,7 @@ http_request() {
     fi
 
     # remove temporary domains.txt file if used
-    [[ -n "${PARAM_DOMAIN:-}" ]] && rm "${DOMAINS_TXT}"
+    [[ -n "${PARAM_DOMAIN:-}" && -n "${DOMAINS_TXT:-}" ]] && rm "${DOMAINS_TXT}"
     exit 1
   fi