mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-28 19:20:16 +00:00
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:
parent
6f5d048a51
commit
d6a5217798
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user