mc: create FTB/CF server start script when absent

Fixes #294
This commit is contained in:
Geoff Bourne
2019-03-10 21:50:42 -05:00
parent aef8f54903
commit 36f5857de3
2 changed files with 15 additions and 3 deletions
+1 -1
View File
@@ -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"