Skip to content

Commit

Permalink
Do not error out when generating ttl for empty lv2 bundles
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Jan 26, 2023
1 parent 03c3616 commit b4b0c7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils/generate-ttl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ FOLDERS=`find . -type d -name \*.lv2`

for i in ${FOLDERS}; do
cd ${i}
FILE="$(ls *.${EXT} | sort | head -n 1)"
${EXE_WRAPPER} "${GEN}" "./${FILE}"
FILE="$(ls *.${EXT} 2>/dev/null | sort | head -n 1)"
if [ -n "${FILE}" ]; then
${EXE_WRAPPER} "${GEN}" "./${FILE}"
fi
cd ..
done

0 comments on commit b4b0c7c

Please sign in to comment.