From: Simon Ruderich Date: Tue, 8 Dec 2015 15:00:43 +0000 (+0100) Subject: _request: fix unset variable X-Git-Tag: v0.1.0~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b2119c4946af91fb847713cc98381968afb8cc6;p=thirdparty%2Fdehydrated.git _request: fix unset variable _request() is also called when $challenge_token/$keyauth is not set. --- diff --git a/letsencrypt.sh b/letsencrypt.sh index 69e778c..acf33db 100755 --- a/letsencrypt.sh +++ b/letsencrypt.sh @@ -100,7 +100,7 @@ _request() { rm -f "${tempcont}" # Wait for hook script to clean the challenge if used - if [[ -n "${HOOK}" ]]; then + if [[ -n "${HOOK}" ]] && [[ -n "${challenge_token:+set}" ]]; then ${HOOK} "clean_challenge" '' "${challenge_token}" "${keyauth}" fi