| 1 | #!/bin/bash |
| 2 | APPID=222860 |
| 3 | STEAMCMD_PATH=~/steamcmd/steamcmd.sh |
| 4 | if test -f "update.lock"; then |
| 5 | echo "update.lock found, cancelling" |
| 6 | exit 1 |
| 7 | fi |
| 8 | touch update.lock |
| 9 | trap '{ rm -f -- "update.lock"; }' EXIT |
| 10 | # Due to some new steamcmd bugs, you cannot install the game except for windows. Valve doesn't seem like they will fix this |
| 11 | # So instead, we force it to download windows files, then we are able to download the linux version afterwards |
| 12 | "$STEAMCMD_PATH" +@sSteamCmdForcePlatformType windows +force_install_dir $PWD +login anonymous +app_update $APPID validate +quit |
| 13 | "$STEAMCMD_PATH" +@sSteamCmdForcePlatformType linux +force_install_dir $PWD +login anonymous +app_update $APPID validate +quit |
| 14 | rm update.lock |
jackz / steamcmd update script
Last active 2 months ago
Updates game folder with steamcmd, with locking