mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-17 19:10:33 +00:00
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:
commit
422227e6d2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user