Skip to content

Commit

Permalink
Update 00-update
Browse files Browse the repository at this point in the history
Modified modlist arg generation slightly
  • Loading branch information
JohnVidler authored Oct 15, 2024
1 parent 4afeb6d commit 0145ccf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions launch.d/00-update
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ pushd ${STEAM_APP_PATH}

MOD_LIST_ARGS=""
if [ -f modlist.txt ]; then
MOD_LIST_ARGS="${MOD_LIST_ARGS} +workshop_download_item"
while read line; do
[[ "$line" =~ ^#.*$ ]] && continue
MOD_LIST_ARGS="${MOD_LIST_ARGS} +workshop_download_item ${STEAM_APP_ID} ${line}"
MOD_LIST_ARGS="${MOD_LIST_ARGS} ${line}"
done <modlist.txt
fi

Expand All @@ -18,7 +19,8 @@ pushd ${STEAMCMDDIR}
./steamcmd.sh \
+force_install_dir "${STEAM_APP_PATH}" \
+login anonymous \
+app_update ${STEAM_APP_ID} validate \
+app_update ${STEAM_APP_ID} \
${MOD_LIST_ARGS} \
validate \
+quit
popd

0 comments on commit 0145ccf

Please sign in to comment.