fix(steamos-update): Use double quotes to prevent potential globbing and word splitting

This commit is contained in:
Matthieu Bouron 2024-01-29 12:20:29 +01:00
parent d6a5217798
commit cd56fe4975

View File

@ -68,7 +68,7 @@ if command -v ublue-update > /dev/null; then
# Check if upgrade failed # Check if upgrade failed
UPGRADE_CHECK=$(cat /tmp/upgrade-check) UPGRADE_CHECK=$(cat /tmp/upgrade-check)
rm /tmp/upgrade-check rm /tmp/upgrade-check
if [ ${UPGRADE_CHECK} -eq 0 ]; then if [ "${UPGRADE_CHECK}" -eq 0 ]; then
touch /tmp/upgrade-installed touch /tmp/upgrade-installed
else else
exit 0 # Upgrade failed exit 0 # Upgrade failed