#!/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