#!/bin/bash set -e ARMA_MOD_VOLUME="arma3_dev_mods" # Check if argument is given if [ -z "$1" ]; then echo "No argument given. Use workshop id as argument. e.g. 1400118996" exit 1 fi PAYLOAD=$(cat < "\$tmpFile" echo "Downloading mod \$mod_id" until /home/steam/steamcmd/steamcmd.sh +runscript "\$tmpFile"; do echo -e "###\nLets try that again\n###"; done echo -e "###\nDownload finished\n###" done # for f in \$(find /home/steam/mount -type f -name '*.pbo' -o -type f -name '*.bisign'); do mv -v "\$f" "\$(echo \$f | tr '[A-Z]' '[a-z]')"; done EOF ) docker run \ -it \ --rm \ --name=arma3_mods \ -v "$ARMA_MOD_VOLUME":/home/steam/mount \ cm2network/steamcmd \ bash -c "$PAYLOAD"