Merge pull request #251 from ublue-os/fix-steamos-update

fix(steamos-update): fix updates not applying
This commit is contained in:
Kyle Gospodnetich 2023-09-02 08:39:58 -07:00 committed by GitHub
commit 07674ffbff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@
# steamos-update --supports-duplicate-detection -- should do nothing
# steamos-update --enable-duplicate-detection check -- should check for update
# steamos-update check -- should check for update
# steamos-update --enable-duplicate-detection -- should perform an update
# steamos-update -- should perform an update
@ -13,8 +14,11 @@ while [[ $# -gt 0 ]]; do
CHECK=1
shift
;;
--supports-duplicate-detection)
EXIT=1
shift
;;
*)
SKIP=1
shift
;;
esac
@ -40,7 +44,7 @@ if command -v ublue-update > /dev/null; then
exit 7 # Connectivity check failed
fi
fi
elif [ -n "${SKIP}" ]; then
elif [ -n "${EXIT}" ]; then
exit 0
else
# Fake upgrade progress bar