jackz

jackz / update.sh

Last active 2 months ago

Like 0

jackz revised this gist 1 year ago · a66568c

No changes

jackz revised this gist 5 years ago · 246efb6

1 file changed, 10 insertions

update.sh (file created)
@@ -0,0 +1,10 @@
1 + #!/bin/bash
2 + APP_ID=
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 +login anonymous +force_install_dir $PWD +app_update $APP_ID validate +quit
10 + rm update.lock