Updates game folder with steamcmd, with locking
0
0
1
| 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 |