mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-03-24 07:22:44 +00:00
Auto-merging via docker-versions-create
This commit is contained in:
@@ -31,7 +31,7 @@ fi
|
||||
echo "Checking for JSON files."
|
||||
JSON_FILES=$(find . -maxdepth 1 -name '*.json')
|
||||
for j in $JSON_FILES; do
|
||||
if [[ $(python -c "print open('$j').read().strip()==''") = True ]]; then
|
||||
if [[ $(cat $j | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') == "" ]]; then
|
||||
echo "Fixing JSON $j"
|
||||
echo '[]' > $j
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user