Skip to content

Commit

Permalink
fix(steamos-update): Properly read the return code of the upgrade com…
Browse files Browse the repository at this point in the history
…mand

Fixes the following error:

/tmp/upgrade-check: integer expression expected
  • Loading branch information
mbouron committed Jan 29, 2024
1 parent 6f5d048 commit d6a5217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system_files/deck/shared/usr/bin/steamos-update
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6a5217

Please sign in to comment.