Skip to content

Instantly share code, notes, and snippets.

@flexgrip

flexgrip/get_rhs.sh

Created Jan 17, 2017
Embed
What would you like to do?
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.
#!/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
You can’t perform that action at this time.