Skip to content

Commit cb77791

Browse files
author
srvrco
committed
issue #243 additional compatibility with bash 3.0
1 parent 33f6eb9 commit cb77791

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

getssl

+7-6
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,11 @@
182182
# 2017-01-21 issue #231 mingw bugfix and typos in debug messages (2.06)
183183
# 2017-01-29 issue #232 use neutral locale for date formatting (2.07)
184184
# 2017-01-30 issue #243 compatibility with bash 3.0 (2.08)
185+
# 2017-01-30 issue #243 additional compatibility with bash 3.0 (2.09)
185186
# ----------------------------------------------------------------------------------------
186187

187188
PROGNAME=${0##*/}
188-
VERSION="2.08"
189+
VERSION="2.09"
189190

190191
# defaults
191192
ACCOUNT_KEY_LENGTH=4096
@@ -1155,9 +1156,9 @@ send_signed_request() { # Sends a request to the ACME server, signed with your p
11551156

11561157
# Send header + extended header + payload + signature to the acme-server
11571158
body="{\"header\": ${header},"
1158-
body+="\"protected\": \"${protected64}\","
1159-
body+="\"payload\": \"${payload64}\","
1160-
body+="\"signature\": \"${signed64}\"}"
1159+
body="${body}\"protected\": \"${protected64}\","
1160+
body="${body}\"payload\": \"${payload64}\","
1161+
body="${body}\"signature\": \"${signed64}\"}"
11611162
debug "header, payload and signature = $body"
11621163

11631164
code="500"
@@ -1715,8 +1716,8 @@ fi
17151716
# end of .... if there is an existing certificate file, check details.
17161717

17171718
if [[ ! -t 0 ]] && [[ "$PREVENT_NON_INTERACTIVE_RENEWAL" = "true" ]]; then
1718-
errmsg="$DOMAIN due for renewal, "
1719-
errmsg+="but not completed due to PREVENT_NON_INTERACTIVE_RENEWAL=true in config"
1719+
errmsg="$DOMAIN due for renewal,"
1720+
errmsg="${errmsg} but not completed due to PREVENT_NON_INTERACTIVE_RENEWAL=true in config"
17201721
error_exit "$errmsg"
17211722
fi
17221723

0 commit comments

Comments
 (0)