From 7448d0e04de41c3f1784c745a785c1c0f66a90a1 Mon Sep 17 00:00:00 2001 From: Lime <59763878+code-lime@users.noreply.github.com> Date: Thu, 2 Apr 2026 03:11:25 +0300 Subject: [PATCH] fix glob foreach (#618) --- bedrock-entry.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bedrock-entry.sh b/bedrock-entry.sh index 22acac3..581ecaa 100755 --- a/bedrock-entry.sh +++ b/bedrock-entry.sh @@ -285,6 +285,8 @@ if [[ ! -f "$SERVER" ]]; then fi if [[ -n "${MC_PACK:-}" ]]; then + finallyShopt="$(shopt -p nullglob || true)" + shopt -s nullglob if [[ -d "$MC_PACK" ]]; then srcDir="$MC_PACK" cleanupTmp= @@ -374,6 +376,7 @@ if [[ -n "${MC_PACK:-}" ]]; then fi [[ -n "$cleanupTmp" ]] && rm -rf "$srcDir" fi + eval "$finallyShopt" fi if [[ -n "$OPS" || -n "$MEMBERS" || -n "$VISITORS" ]]; then