| 1234567891011121314151617181920212223242526272829303132 |
- #!/bin/bash
- # LinuxGSM update_steamcmd.sh module
- # Author: Daniel Gibbs
- # Contributors: https://linuxgsm.com/contrib
- # Website: https://linuxgsm.com
- # Description: Handles updating using SteamCMD.
- moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
- # init steamcmd functions
- core_steamcmd.sh
- # The location where the builds are checked and downloaded.
- remotelocation="SteamCMD"
- check.sh
- fn_print_dots "${remotelocation}"
- if [ "${forceupdate}" == "1" ]; then
- # forceupdate bypasses update checks.
- if [ "${firstcommandname}" == "INSTALL" ]; then
- fn_dl_steamcmd
- date +%s > "${lockdir:?}/last-updated.lock"
- else
- date '+%s' > "${lockdir:?}/update.lock"
- fn_update_apply fn_dl_steamcmd
- fi
- else
- fn_update_steamcmd_localbuild
- fn_update_steamcmd_remotebuild
- fn_update_steamcmd_compare
- fi
|