update.sh
· 285 B · Bash
Raw
#!/bin/bash
APPID=222860
if test -f "update.lock"; then
echo "update.lock found, cancelling"
exit 1
fi
touch update.lock
trap '{ rm -f -- "update.lock"; }' EXIT
/home/steam/steamcmd/steamcmd.sh +force_install_dir $PWD +login anonymous +app_update $APPID validate +quit
rm update.lock
| 1 | #!/bin/bash |
| 2 | APPID=222860 |
| 3 | if test -f "update.lock"; then |
| 4 | echo "update.lock found, cancelling" |
| 5 | exit 1 |
| 6 | fi |
| 7 | touch update.lock |
| 8 | trap '{ rm -f -- "update.lock"; }' EXIT |
| 9 | /home/steam/steamcmd/steamcmd.sh +force_install_dir $PWD +login anonymous +app_update $APPID validate +quit |
| 10 | rm update.lock |