Created
September 30, 2018 22:57
-
-
Save jackbentley/c1715e9b41d1e13093008a209f3067c3 to your computer and use it in GitHub Desktop.
Steamcmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Copyright (C) 2015 Alexandre Detiste <alexandre@detiste.be> | |
# License: MIT | |
# create a fake Steam installation to avoid | |
# that steamcmd uses "/home/$user/Steam" instead | |
if [ ! -e ~/.steam ] | |
then | |
mkdir -p ~/.steam/appcache/ | |
mkdir -p ~/.steam/config/ | |
mkdir -p ~/.steam/logs/ | |
mkdir -p ~/.steam/SteamApps/common/ | |
ln -s ~/.steam ~/.steam/root | |
ln -s ~/.steam ~/.steam/steam | |
fi | |
if [ ! -e ~/.steam/steamcmd ] | |
then | |
mkdir -p ~/.steam/steamcmd/linux32 | |
# steamcmd will replace these files with newer ones itself on first run | |
cp /usr/lib/games/steam/steamcmd.sh ~/.steam/steamcmd/ | |
cp /usr/lib/games/steam/steamcmd ~/.steam/steamcmd/linux32/ | |
fi | |
exec ~/.steam/steamcmd/steamcmd.sh $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment