File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -336,6 +336,7 @@ DNS_WAIT_RETRY_ADD="false" # Try the dns_add_command again if the DNS recor
336
336
# Private variables
337
337
_CHECK_ALL=0
338
338
_CREATE_CONFIG=0
339
+ _CURL_VERSION=" "
339
340
_FORCE_RENEW=0
340
341
_KEEP_VERSIONS=" "
341
342
_MUTE=0
@@ -2246,7 +2247,7 @@ send_signed_request() { # Sends a request to the ACME server, signed with your p
2246
2247
2247
2248
CURL=" curl ${_NOMETER} "
2248
2249
# shellcheck disable=SC2072
2249
- if [[ ! " $( $CURL -V | head -1 | cut -d ' ' -f2 ) " < " 7.33" ]]; then
2250
+ if [[ ! " ${_CURL_VERSION} " < " 7.33" ]]; then
2250
2251
CURL=" $CURL --http1.1 "
2251
2252
fi
2252
2253
@@ -2740,8 +2741,9 @@ requires mktemp
2740
2741
# TODO: see where --silent can be removed (if _NOMETER defaults to --silent for old versions?)
2741
2742
# This would help with debugging transfer errors.
2742
2743
2744
+ _CURL_VERSION= " $( curl -V | head -1 | cut -d' ' -f2 ) "
2743
2745
# shellcheck disable=SC2072
2744
- if [[ ! " $( curl -V | head -1 | cut -d ' ' -f2 ) " < " 7.67" ]]; then
2746
+ if [[ ! " ${_CURL_VERSION} " < " 7.67" ]]; then
2745
2747
_NOMETER=" --no-progress-meter"
2746
2748
fi
2747
2749
You can’t perform that action at this time.
0 commit comments