From d6a5217798877b7e197952ce13588ab34c21dbf5 Mon Sep 17 00:00:00 2001 From: Matthieu Bouron Date: Mon, 29 Jan 2024 12:13:53 +0100 Subject: [PATCH] fix(steamos-update): Properly read the return code of the upgrade command Fixes the following error: /tmp/upgrade-check: integer expression expected --- system_files/deck/shared/usr/bin/steamos-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system_files/deck/shared/usr/bin/steamos-update b/system_files/deck/shared/usr/bin/steamos-update index e822618dbc..5f9d191656 100755 --- a/system_files/deck/shared/usr/bin/steamos-update +++ b/system_files/deck/shared/usr/bin/steamos-update @@ -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