mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-07-12 11:01:03 +00:00
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:
3
acme.sh
3
acme.sh
@ -4885,8 +4885,9 @@ install() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cp "$PROJECT_ENTRY" "$LE_WORKING_DIR/" && chmod +x "$LE_WORKING_DIR/$PROJECT_ENTRY"
|
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"
|
_err "Install failed, can not copy $PROJECT_ENTRY"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user