Replace tabs with space
This commit is contained in:
@@ -19,8 +19,7 @@ function workshop_download () {
|
|||||||
# Check if target folder is not available or clean it and (re)fill it.
|
# Check if target folder is not available or clean it and (re)fill it.
|
||||||
# TODO: Add PWD to execute in current folder, not absolute paths.
|
# TODO: Add PWD to execute in current folder, not absolute paths.
|
||||||
function move_workshop_item () {
|
function move_workshop_item () {
|
||||||
if [ ! -d /app/serverfiles/mods/$2 ];
|
if [ ! -d /app/serverfiles/mods/$2 ]; then
|
||||||
then
|
|
||||||
mkdir /app/serverfiles/mods/$2
|
mkdir /app/serverfiles/mods/$2
|
||||||
else
|
else
|
||||||
# Clean old stuff up.
|
# Clean old stuff up.
|
||||||
@@ -99,10 +98,8 @@ function start () {
|
|||||||
check_mod_names_and_mods_array_lengths ${MOD_NAMES} ${MODS}
|
check_mod_names_and_mods_array_lengths ${MOD_NAMES} ${MODS}
|
||||||
remove_mod_signing_keys_from_server
|
remove_mod_signing_keys_from_server
|
||||||
steamcmd +login $STEAM_ACCT_USERNAME +quit # buffer steam login for mod download and update!
|
steamcmd +login $STEAM_ACCT_USERNAME +quit # buffer steam login for mod download and update!
|
||||||
for i in ${!MODS[*]};
|
for i in ${!MODS[*]}; do
|
||||||
do
|
until workshop_download ${MODS[$i]}; do
|
||||||
until workshop_download ${MODS[$i]};
|
|
||||||
do
|
|
||||||
echo "Error downloading ${MOD_NAMES[$i]}... Try ${counter}/${maxtries}"
|
echo "Error downloading ${MOD_NAMES[$i]}... Try ${counter}/${maxtries}"
|
||||||
counter=$((counter + 1))
|
counter=$((counter + 1))
|
||||||
if [ $counter -ge $maxtries ]; then
|
if [ $counter -ge $maxtries ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user