mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-05-21 19:25:25 +00:00
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
# Make sure files exist and are valid JSON (for pre-1.12 to 1.12 upgrades)
|
||||
echo "Checking for JSON files."
|
||||
JSON_FILES=$(find . -name '*.json')
|
||||
JSON_FILES=$(find . -maxdepth 1 -name '*.json')
|
||||
for j in $JSON_FILES; do
|
||||
if [[ $(python -c "print open('$j').read().strip()==''") = True ]]; then
|
||||
echo "Fixing JSON $j"
|
||||
|
||||
Reference in New Issue
Block a user