From e7f016a1699e6a902b1aa6e586d39f3e12be1a30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 25 Mar 2019 11:28:17 +0100 Subject: [PATCH] add: Test for list.json filename --- validate_all.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/validate_all.sh b/validate_all.sh index a5d3cd4..5bb9833 100755 --- a/validate_all.sh +++ b/validate_all.sh @@ -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}: "