Ward from fusion-voyager-3 90722c256d
Some checks failed
PikaOS Package Build Only (Canary) (amd64-v3) / build (push) Failing after 9s
PikaOS Package Build Only (amd64-v3) / build (push) Failing after 1s
PikaOS Package Build & Release (Canary) (amd64-v3) / build (push) Failing after 9s
PikaOS Package Build & Release (amd64-v3) / build (push) Failing after 1s
port to pika os 4
2024-07-29 01:34:55 +03:00

39 lines
933 B
Bash
Executable File

#! /bin/bash
# The Steam client is known to call this script with the following parameter combinations:
# 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
while [[ $# -gt 0 ]]; do
case $1 in
check)
CHECK=1
shift
;;
--supports-duplicate-detection)
EXIT=1
shift
;;
*)
shift
;;
esac
done
if command -v frzr-deploy > /dev/null; then
if [ -n "$CHECK" ]; then
frzr-deploy --check
elif [ -n "$EXIT" ]; then
exit 0
else
frzr-deploy --steam-progress
fi
else
exit 7 # tells Steam client there is no update to perform
fi