mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-18 21:51:21 +00:00
1 parent
aef8f54903
commit
36f5857de3
2 files changed
+15
-3
No files matched your search
@@ -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