From e9a8e24a0a17cd1f580c75d1677cbbbe3773a46a Mon Sep 17 00:00:00 2001 From: evmy-chan <100407822+evmychan@users.noreply.github.com> Date: Sat, 26 Feb 2022 12:18:24 +0100 Subject: [PATCH] Update validate-gentx.sh --- scripts/validate-gentx.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/validate-gentx.sh b/scripts/validate-gentx.sh index e48a902..975539e 100644 --- a/scripts/validate-gentx.sh +++ b/scripts/validate-gentx.sh @@ -20,6 +20,11 @@ git checkout tags/"$BINARY_VERSION" > /dev/null 2>&1 make build > /dev/null 2>&1 chmod +x "$DAEMON" +# Check if gentx is a json file. +if [ "$GENTX_FILE" != "*.json" ]; then + echo "$GENTX_FILE" is not a json file | tee -a bad_gentxs.out + exit 1 + fi # Get the diff between main and commit echo "Diff is on $GENTX_FILE" LEN_GENTX=${#GENTX_FILE}