Update acme.sh

Sometimes the result of 0 was not properly passed into the if condition, unless stored by _status variable first.
This commit is contained in:
Shane 2017-10-09 01:45:36 -06:00 committed by GitHub
parent bd065838fa
commit 4afd5c48f1

View File

@ -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