Unverified Commit 52351d7d authored by martgras's avatar martgras Committed by GitHub
Browse files

avoid side effects in _printargs

A possible fix for https://github.com/Neilpang/acme.sh/issues/1356
parent a5a0e564
...@@ -139,6 +139,7 @@ __red() { ...@@ -139,6 +139,7 @@ __red() {
} }
_printargs() { _printargs() {
local _exitstatus="$?"
if [ -z "$NO_TIMESTAMP" ] || [ "$NO_TIMESTAMP" = "0" ]; then if [ -z "$NO_TIMESTAMP" ] || [ "$NO_TIMESTAMP" = "0" ]; then
printf -- "%s" "[$(date)] " printf -- "%s" "[$(date)] "
fi fi
...@@ -148,6 +149,8 @@ _printargs() { ...@@ -148,6 +149,8 @@ _printargs() {
printf -- "%s" "$1='$2'" printf -- "%s" "$1='$2'"
fi fi
printf "\n" printf "\n"
# return the saved exit status
return "$_exitstatus"
} }
_dlg_versions() { _dlg_versions() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment