fix(steamos-update): Properly read the return code of the upgrade command

Fixes the following error:

/tmp/upgrade-check: integer expression expected
This commit is contained in:
Matthieu Bouron 2024-01-29 12:13:53 +01:00
parent 6f5d048a51
commit d6a5217798

View File

@ -66,7 +66,7 @@ if command -v ublue-update > /dev/null; then
}
upgrade | fake_progress
# Check if upgrade failed
UPGRADE_CHECK=/tmp/upgrade-check
UPGRADE_CHECK=$(cat /tmp/upgrade-check)
rm /tmp/upgrade-check
if [ ${UPGRADE_CHECK} -eq 0 ]; then
touch /tmp/upgrade-installed