Merge pull request #720 from mbouron/fix-steamos-update-script

fix(steamos-update): Properly read the return code of the upgrade command
This commit is contained in:
RJ Trujillo 2024-01-29 06:47:38 -07:00 committed by GitHub
commit 422227e6d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,9 +66,9 @@ 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
if [ "${UPGRADE_CHECK}" -eq 0 ]; then
touch /tmp/upgrade-installed
else
exit 0 # Upgrade failed