Skip to content

Instantly share code, notes, and snippets.

View jagoPG's full-sized avatar
🎶

jagoPG jagoPG

🎶
View GitHub Profile
@jagoPG
jagoPG / update-corekeeper-server.sh
Created September 7, 2024 19:22
Updates a CoreKeeper server to the latest available version
#!/usr/bin/env bash
# This script updates the Corekeeper server if a new version is available
function get_version() {
# Get the latest version of the game
STEAM_GAME_VERSION=$(/usr/games/steamcmd +login anonymous +app_info_update 0 +app_info_print "1963720" +quit | \
grep -EA 50 "\"branches\"" | grep -EA 5 "\"public\"" | \
grep -E "\"buildid\"" | awk -F '"' '{print $4}')