From c8fbd6326dffde2bd13bc88ee7485b0becc32c48 Mon Sep 17 00:00:00 2001 From: Nick Guy Date: Mon, 2 Jun 2025 22:19:11 +0100 Subject: [PATCH] Fix file path handling in load-script.sh Wrapped file paths in quotes to prevent issues with spaces or special characters in directory names. Ensures reliability and robustness when processing files. --- load-script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/load-script.sh b/load-script.sh index 1035435..e09ba0a 100755 --- a/load-script.sh +++ b/load-script.sh @@ -21,7 +21,7 @@ fi map_file="${DIR}/templates/texture-pack/assets/minecraft/textures/map/map_background.png" rm ${map_file} echo "Deploying \"${script_file}\" to \"${map_file}\"" -cp ${script_file} ${map_file} +cp "${script_file}" "${map_file}" # Package resource pack pushd "${DIR}/templates" mkdir -p "${root_dir}/files"