fixed logic error
This commit is contained in:
@@ -7,8 +7,8 @@ set -eEuxo pipefail
|
||||
fwupdmgr refresh --force
|
||||
error=0
|
||||
fwupdmgr update || error=${?}
|
||||
if (( error && error == 2 )); then
|
||||
if (( error == 2 )); then
|
||||
echo "Everything up-to-date"
|
||||
else
|
||||
elif (( error )); then
|
||||
exit ${error}
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user