diff --git a/minecraft-server/start-minecraftFinalSetup b/minecraft-server/start-minecraftFinalSetup index 8357ec2d..7b0e3562 100755 --- a/minecraft-server/start-minecraftFinalSetup +++ b/minecraft-server/start-minecraftFinalSetup @@ -24,7 +24,7 @@ if [ -n "$ICON" -a ! -e server-icon.png ]; then fi # Make sure files exist and are valid JSON (for pre-1.12 to 1.12 upgrades) -if [[ -z "ls *.json" ]]; then +if [[ ! -z "find . -name '$*.json'" ]]; then echo "Checking JSON files" for j in *.json; do if [[ $(python -c "print open('$j').read().strip()==''") = True ]]; then