From c1db13c1f6135a8611f223f6f1b6c649f99e331e Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 12 Dec 2020 11:10:13 -0600 Subject: [PATCH] Fixed dirname handling in find for SPIGOT WORLD handling For #685 --- start-finalSetupWorld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start-finalSetupWorld b/start-finalSetupWorld index bf3b5ded..5d1bd79c 100644 --- a/start-finalSetupWorld +++ b/start-finalSetupWorld @@ -26,7 +26,7 @@ if [[ "$WORLD" ]] && ( isTrue "${FORCE_WORLD_COPY}" || [ ! -d "$worldDest" ] ); (cd /tmp/world-data && unzip -o -q "$zipSrc") if [ "$TYPE" = "SPIGOT" ]; then - baseDirs=$(find /tmp/world-data -name "level.dat" -not -path "*_nether*" -not -path "*_the_end*" -printf "%h") + baseDirs=$(find /tmp/world-data -name "level.dat" -not -path "*_nether*" -not -path "*_the_end*" -exec dirname "{}" \;) else baseDirs=$(find /tmp/world-data -name "level.dat" -exec dirname "{}" \;) fi