From f448fd12c691c85938c22083425515d72ea72ef0 Mon Sep 17 00:00:00 2001 From: Mitch Weaver Date: Mon, 20 Nov 2023 21:08:31 -0600 Subject: [PATCH] asdf --- modserver/update_mods.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/modserver/update_mods.sh b/modserver/update_mods.sh index f400fad..74e3fdc 100644 --- a/modserver/update_mods.sh +++ b/modserver/update_mods.sh @@ -110,12 +110,7 @@ update_mods_for_server() { echo mods_file="$MODLISTS/$1" - echo $mods_file - echo - cat $mods_file - echo map_name=${1%.txt} - echo $map_name mkdir -p "$REMOTE_MODS/$map_name" # Create temporary file to list all the mod_id's we are @@ -123,8 +118,6 @@ update_mods_for_server() { tempfile="/tmp/$map_name-mods_to_download.txt" :> "$tempfile" - echo $tempfile - # load the server_modlist.txt, copying the mod id's we need to update # to the temp file, while skipping comments and blank lines # @@ -135,11 +128,14 @@ update_mods_for_server() { # 2545327648^dabsframework # while read -r mod ; do + echo "READ: $mod" case "$mod" in \#*|''|' ') + echo "BLANK: $mod" ;; *) mod=${mod%%^*} + echo "CONVERTED: $mod" # check validity of syntax if [ -z "$mod" ] ; then