16 lines
393 B
Bash
16 lines
393 B
Bash
#!/bin/bash --posix
|
|
|
|
set -e
|
|
|
|
STEAM_DIRECTORY="${1:-"/usr/local/share/steam/"}"
|
|
|
|
mkdir -p "${STEAM_DIRECTORY}"
|
|
cd "${STEAM_DIRECTORY}"
|
|
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
|
|
chmod -R 755 "${STEAM_DIRECTORY}"
|
|
|
|
ln -s "${STEAM_DIRECTORY}/steamcmd.sh" /usr/local/bin/steamcmd
|
|
|
|
chmod 755 /usr/local/bin/steamcmd
|
|
/usr/local/bin/steamcmd +quit
|