add: Test for list.json filename

pull/100/head
Raphaël Vinot 2019-03-25 11:28:17 +01:00
parent 48a5e32d50
commit e7f016a169
1 changed files with 9 additions and 0 deletions

View File

@ -22,6 +22,15 @@ if ! [ $diffs -eq 0 ]; then
exit 1
fi
# test filename
for dir in lists/*/*.json
do
if [ basename ${dir: -4} != "list.json" ]; then
echo "Invalid filename (should be list.json): " ${dir}
exit 1
fi
done
for dir in lists/*/list.json
do
echo -n "${dir}: "