From d5e91d758096f1d951bd6a5acad83a64056d5092 Mon Sep 17 00:00:00 2001 From: "dr.lt.data" Date: Thu, 28 Dec 2023 10:58:50 +0900 Subject: [PATCH] add checker --- check.sh | 27 +++++++++++++++++++++++++++ scan.sh | 3 +++ 2 files changed, 30 insertions(+) create mode 100755 check.sh diff --git a/check.sh b/check.sh new file mode 100755 index 0000000..9260dbe --- /dev/null +++ b/check.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +files=( + "custom-node-list.json" + "model-list.json" + "alter-list.json" + "extension-node-map.json" + "node_db/new/custom-node-list.json" + "node_db/new/model-list.json" + "node_db/new/extension-node-map.json" + "node_db/dev/custom-node-list.json" + "node_db/dev/model-list.json" + "node_db/dev/extension-node-map.json" + "node_db/tutorial/custom-node-list.json" + "node_db/tutorial/model-list.json" + "node_db/tutorial/extension-node-map.json" + "node_db/legacy/custom-node-list.json" + "node_db/legacy/model-list.json" + "node_db/legacy/extension-node-map.json" + "node_db/forked/custom-node-list.json" + "node_db/forked/model-list.json" + "node_db/forked/extension-node-map.json" +) + +for file in "${files[@]}"; do + python json-checker.py "$file" +done diff --git a/scan.sh b/scan.sh index bea8515..1b3cc37 100755 --- a/scan.sh +++ b/scan.sh @@ -2,3 +2,6 @@ rm ~/.tmp/default/*.py > /dev/null 2>&1 python scanner.py ~/.tmp/default cp extension-node-map.json node_db/new/. + +echo Integrity check +./check.sh