apploader - Ignore empty folder instead of creating invalid json

pull/1981/head
Martin Boonk 2022-06-18 13:00:02 +02:00
parent 3bddcd402d
commit 834b606f63
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ echo "[" > "$outfile"
first=1
for app in apps/*/; do
echo "Processing $app...";
if [[ "$app" =~ ^apps/_example.* ]]; then
if [[ "$app" =~ ^apps/_example.* ]] || [ ! -e "$app/"metadata.json ]; then
echo "Ignoring $app"
else
if [ $first -eq 1 ]; then