From eb0a6d00675756972f4f22ecaa10532bae601c59 Mon Sep 17 00:00:00 2001 From: ember arlynx Date: Thu, 29 Feb 2024 17:56:07 -0500 Subject: [PATCH] fix jq on buster --- scripts/hardfork/create_runtime_config.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/hardfork/create_runtime_config.sh b/scripts/hardfork/create_runtime_config.sh index f173ab0bad0..04c4bb8e003 100755 --- a/scripts/hardfork/create_runtime_config.sh +++ b/scripts/hardfork/create_runtime_config.sh @@ -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")