heckmanmeanscat

CSGO Update Script

Nov 30th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.56 KB | None | 0 0
  1. #!/bin/bash
  2. last_version=$(curl -s "http://api.steampowered.com/ISteamApps/UpToDateCheck/v0001/?appid=730&version=13726&format=json" \
  3.         | sed 's/,/\n/g' \
  4.         | grep "required_version" \
  5.         | awk -F: '{print $2}')
  6.  
  7. echo "Latest version number: $last_version"
  8. echo "Running script ..."
  9. /home/_CHANGEUSERNAME_/masterserver/steamCMD/steamcmd.sh +login anonymous +force_install_dir /home/_CHANGEUSERNAME_/masterserver/csgo +app_update 740 +quit &> /dev/null && echo "Success" || echo "failed"
  10.  
  11. Remember to change "_CHANGEUSERNAME_" to the correct username.
Add Comment
Please, Sign In to add comment