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.
This commit is contained in:
parent
eefb13c59b
commit
c8fbd6326d
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ fi
|
||||||
map_file="${DIR}/templates/texture-pack/assets/minecraft/textures/map/map_background.png"
|
map_file="${DIR}/templates/texture-pack/assets/minecraft/textures/map/map_background.png"
|
||||||
rm ${map_file}
|
rm ${map_file}
|
||||||
echo "Deploying \"${script_file}\" to \"${map_file}\""
|
echo "Deploying \"${script_file}\" to \"${map_file}\""
|
||||||
cp ${script_file} ${map_file}
|
cp "${script_file}" "${map_file}"
|
||||||
# Package resource pack
|
# Package resource pack
|
||||||
pushd "${DIR}/templates"
|
pushd "${DIR}/templates"
|
||||||
mkdir -p "${root_dir}/files"
|
mkdir -p "${root_dir}/files"
|
||||||
|
|
Loading…
Reference in a new issue