iso-profiles/oem/gaming-oem-kde6/desktop-overlay/usr/bin/steamos-update
2024-03-07 18:20:40 +07:00

33 lines
828 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 [ -n "$CHECK" ]; then
exit 7
elif [ -n "$EXIT" ]; then
exit 0
else
exit 7 # tells Steam client there is no update to perform
fi