Skip to content

Instantly share code, notes, and snippets.

@Jackzmc
Created July 6, 2021 16:28
Show Gist options
  • Select an option

  • Save Jackzmc/ce524250b4d6a9899e8d671a52061de4 to your computer and use it in GitHub Desktop.

Select an option

Save Jackzmc/ce524250b4d6a9899e8d671a52061de4 to your computer and use it in GitHub Desktop.
#!/bin/bash
APP_ID=
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 +login anonymous +force_install_dir $PWD +app_update $APP_ID validate +quit
rm update.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment