Skip to content

Commit a90e7ba

Browse files
dkijaniaCopilot
andauthored
Update scripts/regenerate-archive.sh
Co-authored-by: Copilot <[email protected]>
1 parent 8490cd3 commit a90e7ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/regenerate-archive.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ rm _tmp.json
6060
echo Regenerating genesis_ledger
6161
cat src/test/archive/sample_db/genesis.json | jq ".ledger=$(cat $LOCAL_NETWORK_DATA_FOLDER/genesis_ledger.json | jq -c)" > _tmp.json
6262
#update genesis_state_timestamp to the one from daemon.json
63-
jq --argjson timestamp "$(cat $LOCAL_NETWORK_DATA_FOLDER/daemon.json | jq '.genesis.genesis_state_timestamp')" '.genesis.genesis_state_timestamp = $timestamp' _tmp.json > _tmp2.json && mv _tmp2.json _tmp.json
63+
jq --arg timestamp "$(cat $LOCAL_NETWORK_DATA_FOLDER/daemon.json | jq -r '.genesis.genesis_state_timestamp')" '.genesis.genesis_state_timestamp = $timestamp' _tmp.json > _tmp2.json && mv _tmp2.json _tmp.json
6464

6565
mv _tmp.json src/test/archive/sample_db/genesis.json
6666

0 commit comments

Comments
 (0)