Skip to content

Commit

Permalink
fix jq on buster
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian committed Feb 29, 2024
1 parent 85e7e38 commit eb0a6d0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/hardfork/create_runtime_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ FORKING_FROM_CONFIG_JSON=${FORKING_FROM_CONFIG_JSON:=genesis_ledgers/mainnet.jso
# If not given, the genesis timestamp is set to 10 mins into the future
GENESIS_TIMESTAMP=${GENESIS_TIMESTAMP:=$(date -u +"%Y-%m-%dT%H:%M:%SZ" -d "10 mins")}

echo "*** $FORKING_FROM_CONFIG_JSON:" >&2
cat "$FORKING_FROM_CONFIG_JSON" >&2
jq < "$FORKING_FROM_CONFIG_JSON" >/dev/null
# echo "*** $FORKING_FROM_CONFIG_JSON:" >&2
# cat "$FORKING_FROM_CONFIG_JSON" >&2
# jq < "$FORKING_FROM_CONFIG_JSON" >/dev/null

echo "*** $LEDGER_HASHES_JSON:" >&2
cat "$LEDGER_HASHES_JSON" >&2
jq < "$LEDGER_HASHES_JSON" >/dev/null
jq '.' < "$LEDGER_HASHES_JSON" >/dev/null

echo "*** $FORK_CONFIG_JSON:" >&2
cat "$FORK_CONFIG_JSON" >&2
jq < "$FORK_CONFIG_JSON" >/dev/null
# echo "*** $FORK_CONFIG_JSON:" >&2
# cat "$FORK_CONFIG_JSON" >&2
# jq < "$FORK_CONFIG_JSON" >/dev/null

# Pull the original genesis timestamp from the pre-fork config file
ORIGINAL_GENESIS_TIMESTAMP=$(jq -r '.genesis.genesis_state_timestamp' "$FORKING_FROM_CONFIG_JSON")
Expand Down

0 comments on commit eb0a6d0

Please sign in to comment.