From 728611ee38648adaf36eca7e1310aeb4d1911427 Mon Sep 17 00:00:00 2001 From: srvrco Date: Mon, 13 Jun 2016 13:09:41 +0100 Subject: [PATCH] testing bug fix for issue#47 --- getssl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/getssl b/getssl index 7de4f3a..b3bccc5 100755 --- a/getssl +++ b/getssl @@ -190,6 +190,7 @@ clean_up() { # Perform pre-exit housekeeping rm -rf "${TEMP_DIR:?}" fi if [[ $VALIDATE_VIA_DNS == "true" ]]; then + # Tidy up DNS etries if things failed part way though. shopt -s nullglob for dnsfile in $TEMP_DIR/dns_verify/*; do . "$dnsfile" @@ -1092,6 +1093,8 @@ if [[ $VALIDATE_VIA_DNS == "true" ]]; then debug "remove DNS entry" $DNS_DEL_COMMAND "$d" + # remove $dnsfile after each loop. + rm -f "$dnsfile" done fi # end of ... perform validation if via DNS challenge