From 60d3069349478e327ae50efb125daae79d33fdee Mon Sep 17 00:00:00 2001 From: l0py2 Date: Mon, 1 Jul 2024 12:27:10 +0100 Subject: [PATCH] Make pack-mode-switcher.sh Dir Check POSIX Compliant (#783) [BUG] --- pack-mode-switcher.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pack-mode-switcher.sh b/pack-mode-switcher.sh index 75eeb26..5f48204 100755 --- a/pack-mode-switcher.sh +++ b/pack-mode-switcher.sh @@ -19,7 +19,7 @@ CURRENT_MODE="$(head .mode)" CURRENT_MODE=${CURRENT_MODE:="normal"} # Check if config-overrides dir exists -if [[ ! -d "${NORMAL_CFG}" ]] || [[ ! -d "${EXPERT_CFG}" ]]; then +if [ ! -d "${NORMAL_CFG}" ] || [ ! -d "${EXPERT_CFG}" ]; then printf "\n\n${RED}Could not find \`config-overrides\` directory! \nMake sure you are in the \`/minecraft\` directory of your instance! (The one containing \`/config\`)${NORMAL}\n" printf "${YELLOW}Otherwise, if you are in the \`/minecraft\` directory, please try reinstalling the pack.${NORMAL}\n" exit 1 @@ -40,7 +40,7 @@ fi case $MODE in N|n|normal|Normal) - cp -rf "$NORMAL_CFG/." ${TARGET} + cp -rf "$NORMAL_CFG/." ${TARGET} # Only copy server.properties if it exists. if [ -f "server.properties" ]; then