From 66302629f25540cf1f0308fe794366e2ae6ac073 Mon Sep 17 00:00:00 2001 From: Guillaume Rischard Date: Sat, 23 Jun 2018 21:50:01 +0200 Subject: [PATCH] Allow checking for challenges that start with a dash Fixes #10 --- hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hook.sh b/hook.sh index 3a708d2..ca28047 100755 --- a/hook.sh +++ b/hook.sh @@ -84,7 +84,7 @@ _checkdns() { _log "Checking for dns propagation via Google's recursor... (${ATTEMPT}/${ATTEMPTS})" - host -t txt _acme-challenge.${DOMAIN} 8.8.8.8 | grep ${TOKEN_VALUE} >/dev/null 2>&1 + host -t txt _acme-challenge.${DOMAIN} 8.8.8.8 | grep -- ${TOKEN_VALUE} >/dev/null 2>&1 if [ "$?" -eq 0 ]; then _log "Propagation success!"