From 4afd5c48f1ff44c12c2865671a8d53fb178cec33 Mon Sep 17 00:00:00 2001 From: Shane Date: Mon, 9 Oct 2017 01:45:36 -0600 Subject: [PATCH] Update acme.sh Sometimes the result of 0 was not properly passed into the if condition, unless stored by _status variable first. --- acme.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 9b917f7b..61542e38 100755 --- a/acme.sh +++ b/acme.sh @@ -4885,8 +4885,9 @@ install() { fi cp "$PROJECT_ENTRY" "$LE_WORKING_DIR/" && chmod +x "$LE_WORKING_DIR/$PROJECT_ENTRY" + _status=`echo $?` - if [ "$?" != "0" ]; then + if [ "$_status" != "0" ]; then _err "Install failed, can not copy $PROJECT_ENTRY" return 1 fi