diff --git a/.github/workflows/validate-genesis.yml b/.github/workflows/validate-genesis.yml index fb3fe50d..4e8b8803 100644 --- a/.github/workflows/validate-genesis.yml +++ b/.github/workflows/validate-genesis.yml @@ -65,6 +65,6 @@ jobs: go install - name: Validate Genesis run: | - if [[-f ./celestia/pre-genesis.json && -d ./celestia/gentx ]]; then + if test -f ./celestia/pre-genesis.json && test -d ./celestia/gentx; then gentest ./celestia/pre-genesis.json ./celestia/gentx fi diff --git a/.github/workflows/validate-gentx.yml b/.github/workflows/validate-gentx.yml index 3d9a3aae..06e9840d 100644 --- a/.github/workflows/validate-gentx.yml +++ b/.github/workflows/validate-gentx.yml @@ -34,9 +34,14 @@ jobs: if [ "$formatted" != "$(cat $file)" ]; then echo "$file gentx file not formatted" echo "expected:" - echo $formatted + echo "$formatted" echo "found:" cat $file + echo "" + echo "Hexdump of file:" + head -c 100 "$file" | hexdump -C + echo "Hexdump of jq output:" + echo "$formatted" | head -c 100 | hexdump -C exit 1 fi done