From: Lukas Schauer Date: Wed, 9 Oct 2019 00:05:54 +0000 (+0200) Subject: fixed small logic bug X-Git-Tag: v0.7.0~60 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=946e5712ba86b15afb4cf908eb7d0785c87195b8;p=thirdparty%2Fdehydrated.git fixed small logic bug --- diff --git a/dehydrated b/dehydrated index 624cd85..aacb66b 100755 --- a/dehydrated +++ b/dehydrated @@ -530,8 +530,8 @@ http_request() { set +e if [[ "${1}" = "head" ]]; then statuscode="$(curl ${ip_version:-} ${CURL_OPTS} -A "dehydrated/${VERSION} curl/${CURL_VERSION}" -s -w "%{http_code}" -o "${tempcont}" "${2}" -I)" - touch "${tempheaders}" curlret="${?}" + touch "${tempheaders}" elif [[ "${1}" = "get" ]]; then statuscode="$(curl ${ip_version:-} ${CURL_OPTS} -A "dehydrated/${VERSION} curl/${CURL_VERSION}" -L -s -w "%{http_code}" -o "${tempcont}" -D "${tempheaders}" "${2}")" curlret="${?}"