From 1811271a68102e5e8f46efb3a334904a257da118 Mon Sep 17 00:00:00 2001 From: Red-Thirten Date: Mon, 12 Jul 2021 19:57:34 -0700 Subject: [PATCH] Update entrypoint.sh --- games/arma3/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/arma3/entrypoint.sh b/games/arma3/entrypoint.sh index c9b8582..b2536c8 100644 --- a/games/arma3/entrypoint.sh +++ b/games/arma3/entrypoint.sh @@ -213,7 +213,7 @@ if [[ ${UPDATE_SERVER} == 1 ]]; then # Get mod's latest update in epoch time from its Steam Workshop changelog page latestUpdate=$(curl -sL https://steamcommunity.com/sharedfiles/filedetails/changelog/$modID | grep '

$(find @$modID | head -1 | xargs stat -c%Z) ) ]]; then + if [[ ! -d @$modID ]] || [[ ( -n $latestUpdate ) && ( $latestUpdate =~ ^[0-9]+$ ) && ( $latestUpdate > $(find @$modID | head -1 | xargs stat -c%Y) ) ]]; then # Get the mod's name from the Workshop page as well modName=$(curl -sL https://steamcommunity.com/sharedfiles/filedetails/changelog/$modID | grep 'workshopItemTitle' | cut -d'>' -f2 | cut -d'<' -f1) if [[ -z $modName ]]; then # Set default name if unavailable