Created
January 17, 2017 22:04
-
-
Save flexgrip/88b315775d31da1404edc91f4050b432 to your computer and use it in GitHub Desktop.
Grabs all of the rhs mods from the workshop onto a linux server with steamcmd installed. Make sure you auth steamcmd with the user you specify at least once before running or it will fail.
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/bash | |
declare -A PACK | |
# EDIT THESE | |
# | |
# choose which packs you want to get by uncommenting them | |
PACK[afrf]=843425103 | |
#PACK[usaf]=843577117 | |
#PACK[gref]=843593391 | |
#PACK[saf]=843632231 | |
# specify the location of steamcmd.sh | |
STEAM_USER="flexgrip" # Your user name. Must have an arma 3 license | |
STEAM_PASS="your_pass" # this is probably not needed once you login once | |
STEAMCMD="/home/steam/Steam/steamcmd.sh +login" | |
###### STOP EDITING HERE ###### | |
GRAB_THESE="" | |
for V in "${PACK[@]}"; | |
do | |
GRAB_THESE+=" +workshop_download_item 107410 $V " | |
done | |
$STEAMCMD $STEAM_USER $STEAM_PASS "+force_install_dir /tmp/" $GRAB_THESE " +quit" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment