_request: fix unset variable

_request() is also called when $challenge_token/$keyauth is not set.
This commit is contained in:
Simon Ruderich
2015-12-08 16:00:43 +01:00
parent 84fac54107
commit 0b2119c494

View File

@@ -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