add: Test for list.json filename
parent
48a5e32d50
commit
e7f016a169
|
@ -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}: "
|
||||
|
|
Loading…
Reference in New Issue