From 533cf31f7a8ca28b74e2526df97efb095854bb49 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sun, 16 Oct 2022 00:41:23 +0800 Subject: [PATCH] feat: release check script --- src/m.wxsy.net/check.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 src/m.wxsy.net/check.sh diff --git a/src/m.wxsy.net/check.sh b/src/m.wxsy.net/check.sh new file mode 100755 index 0000000..7eafab5 --- /dev/null +++ b/src/m.wxsy.net/check.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +cd `dirname $0` + +diff <(xz -cdk ./archive/catalog.json.xz | jq .) <(cat ./data/catalog.json | jq .) +diff <(cd ./data/html/ && sha1sum * | sort -u) <(cat ./archive/html.sha1sum | sort -u) +diff <(cd ./data/json/ && sha1sum * | sort -u) <(cat ./archive/json.sha1sum | sort -u) +diff <(xz -cdk ./archive/xxrs.json.xz | jq .) <(cat ./data/xxrs.json | jq .)