mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
using find to match json files
This commit is contained in:
parent
3fee3f0f41
commit
491abfc833
@ -24,7 +24,7 @@ if [ -n "$ICON" -a ! -e server-icon.png ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Make sure files exist and are valid JSON (for pre-1.12 to 1.12 upgrades)
|
# 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"
|
echo "Checking JSON files"
|
||||||
for j in *.json; do
|
for j in *.json; do
|
||||||
if [[ $(python -c "print open('$j').read().strip()==''") = True ]]; then
|
if [[ $(python -c "print open('$j').read().strip()==''") = True ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user