From 6756fe3ae2f8dcdce4ece8b23e46bbcc30c46061 Mon Sep 17 00:00:00 2001 From: Atromix Date: Thu, 23 Jan 2025 22:08:58 -0800 Subject: [PATCH 1/2] fix: Corrected removal of neoforge jars and old server files zips when updating. --- launch.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/launch.sh b/launch.sh index 9aa59ec..ea47e17 100644 --- a/launch.sh +++ b/launch.sh @@ -14,10 +14,10 @@ else fi if ! [[ -f "Server-Files-$SERVER_VERSION.zip" ]]; then - rm -fr config defaultconfigs kubejs mods packmenu Simple.zip forge* - curl -Lo "Server-Files-$SERVER_VERSION.zip" 'https://edge.forgecdn.net/files/6116/912/ServerFiles-2.28.zip' || exit 9 + rm -fr config defaultconfigs kubejs mods packmenu Server-Files-* neoforge* + curl -Lo "Server-Files-$SERVER_VERSION.zip" "https://edge.forgecdn.net/files/6116/912/ServerFiles-$SERVER_VERSION.zip" || exit 9 unzip -u -o "Server-Files-$SERVER_VERSION.zip" -d /data - DIR_TEST=$(find . -type d -maxdepth 1 | tail -1 | sed 's/^.\{2\}//g') + DIR_TEST="ServerFiles-$SERVER_VERSION" if [[ $(find . -type d -maxdepth 1 | wc -l) -gt 1 ]]; then cd "${DIR_TEST}" find . -type d -exec chmod 777 {} + From b4a73fda2e3ddaa1be9056f9445a2bf754f04eba Mon Sep 17 00:00:00 2001 From: W3LFARe Date: Sat, 25 Jan 2025 22:04:13 -0500 Subject: [PATCH 2/2] Update launch.sh --- launch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launch.sh b/launch.sh index a3741ef..f7f9038 100644 --- a/launch.sh +++ b/launch.sh @@ -15,7 +15,7 @@ fi if ! [[ -f "Server-Files-$SERVER_VERSION.zip" ]]; then rm -fr config defaultconfigs kubejs mods packmenu Server-Files-* neoforge* - curl -Lo "Server-Files-$SERVER_VERSION.zip" "https://edge.forgecdn.net/files/6116/912/ServerFiles-$SERVER_VERSION.zip" || exit 9 + curl -Lo "Server-Files-$SERVER_VERSION.zip" "https://edge.forgecdn.net/files/6122/030/ServerFiles-$SERVER_VERSION.zip" || exit 9 unzip -u -o "Server-Files-$SERVER_VERSION.zip" -d /data DIR_TEST="ServerFiles-$SERVER_VERSION" if [[ $(find . -type d -maxdepth 1 | wc -l) -gt 1 ]]; then