From: Lukas Schauer Date: Thu, 22 Feb 2018 21:22:04 +0000 (+0100) Subject: fixed undefined-variable bug on early connection failure (while accessing ca directory) X-Git-Tag: v0.6.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a91074b707cc4a9bbcdff4da0228b9d7f189f66e;p=thirdparty%2Fdehydrated.git fixed undefined-variable bug on early connection failure (while accessing ca directory) --- 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