From f86e35aaf10a84ffb090153d088160dd564e8e5d Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 4 Jun 2026 12:56:16 +0000 Subject: [PATCH] services/minecraft.sh: fix two incorrect printed instructions - SCP example used $(whoami) which evaluates to root; use $ACTUAL_USER instead - VT_VERSION stripped to major.minor (e.g. 1.21) so the picker version prompt is correct; previous awk printed the full patch string (1.21.4) https://claude.ai/code/session_017WJtGcE5jjerAQCUBWUE3H --- services/minecraft.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/minecraft.sh b/services/minecraft.sh index 5fb0152..f9c26c6 100644 --- a/services/minecraft.sh +++ b/services/minecraft.sh @@ -1156,7 +1156,7 @@ for v in versions: # ── Vanilla Tweaks datapacks — manual download required ────────────────────── if [ "$SUPPORTS_FABRIC_MODS" = true ] && [ ${#SELECTED_DATAPACKS[@]} -gt 0 ]; then local VT_VERSION - VT_VERSION=$(echo "$MC_VERSION" | awk -F. '{if ($1=="1") print $0; else print $1"."$2}') + VT_VERSION=$(echo "$MC_VERSION" | awk -F. '{print $1"."$2}') echo "" log_info "Vanilla Tweaks — download your selected packs manually:" @@ -1183,7 +1183,7 @@ for v in versions: echo " ── How to install ────────────────────────────────────────────────────" echo " 1. Download the ZIP from vanillatweaks.net (use share link or pick)" echo " 2. SCP it to this server (run on your local machine):" - echo " scp ~/Downloads/VanillaTweaks*.zip $(whoami)@$(hostname -I | awk '{print $1}'):${MC_DIR}/datapacks-download/" + echo " scp ~/Downloads/VanillaTweaks*.zip ${ACTUAL_USER}@$(hostname -I | awk '{print $1}'):${MC_DIR}/datapacks-download/" echo " 3. On this server:" echo " cd ${MC_DIR}/datapacks-download" echo " unzip 'VanillaTweaks*.zip' && rm VanillaTweaks*.zip"