Replace tabs with space

This commit is contained in:
2024-11-12 14:38:02 +02:00
parent 45f339fb03
commit 56d35d754f
+3 -6
View File
@@ -19,8 +19,7 @@ function workshop_download () {
# 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.
function move_workshop_item () {
if [ ! -d /app/serverfiles/mods/$2 ];
then
if [ ! -d /app/serverfiles/mods/$2 ]; then
mkdir /app/serverfiles/mods/$2
else
# Clean old stuff up.
@@ -99,10 +98,8 @@ function start () {
check_mod_names_and_mods_array_lengths ${MOD_NAMES} ${MODS}
remove_mod_signing_keys_from_server
steamcmd +login $STEAM_ACCT_USERNAME +quit # buffer steam login for mod download and update!
for i in ${!MODS[*]};
do
until workshop_download ${MODS[$i]};
do
for i in ${!MODS[*]}; do
until workshop_download ${MODS[$i]}; do
echo "Error downloading ${MOD_NAMES[$i]}... Try ${counter}/${maxtries}"
counter=$((counter + 1))
if [ $counter -ge $maxtries ]; then