From a91074b707cc4a9bbcdff4da0228b9d7f189f66e Mon Sep 17 00:00:00 2001 From: Lukas Schauer Date: Thu, 22 Feb 2018 22:22:04 +0100 Subject: [PATCH] fixed undefined-variable bug on early connection failure (while accessing ca directory) --- dehydrated | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dehydrated b/dehydrated index b9d72f0..c81d73a 100755 --- a/dehydrated +++ b/dehydrated @@ -520,7 +520,7 @@ http_request() { if [[ ! "${statuscode:0:1}" = "2" ]]; then # check for existing registration warning - if [[ ${API} -eq 1 ]] && [[ -n "${CA_NEW_REG:-}" ]] && [[ "${2}" = "${CA_NEW_REG:-}" ]] && [[ "${statuscode}" = "409" ]] && grep -q "Registration key is already in use" "${tempcont}"; then + if [[ "${API}" = "1" ]] && [[ -n "${CA_NEW_REG:-}" ]] && [[ "${2}" = "${CA_NEW_REG:-}" ]] && [[ "${statuscode}" = "409" ]] && grep -q "Registration key is already in use" "${tempcont}"; then # do nothing : # check for already-revoked warning -- 2.47.2