Skip to content

Commit

Permalink
work with empty
Browse files Browse the repository at this point in the history
  • Loading branch information
amandasaurus committed Feb 23, 2024
1 parent 5c1447d commit 074dd9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make-planet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi

# Now do processing

if [ -z "$(jq <docs/data/tilesets.json .tilesets)" ] ; then
if [ ! -s docs/data/tilesets.json ] || [ -z "$(jq <docs/data/tilesets.json .tilesets)" ] ; then
echo "./docs/data/tilesets.json is empty somehow, so add a base"
jo tilesets=[] > ./docs/data/tilesets.json
fi
Expand Down

0 comments on commit 074dd9b

Please sign in to comment.