Skip to content

Commit

Permalink
snapshot-downloader.sh now checks for history_mode at all levels.
Browse files Browse the repository at this point in the history
Fixes #341
  • Loading branch information
elric1 committed Jan 20, 2022
1 parent f011432 commit 8c0b449
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions utils/snapshot-downloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ fi

echo "Did not find a pre-existing blockchain."

my_nodes_history_mode=$(echo $NODES | jq -r "
.\"${MY_NODE_CLASS}\"
.instances[${MY_POD_NAME#$MY_NODE_CLASS-}]
.config.shell.history_mode
my_nodes_history_mode=$(< /etc/tezos/config.json jq -r "
.shell.history_mode
|if type == \"object\" then
(keys|.[0])
else .
Expand Down

0 comments on commit 8c0b449

Please sign in to comment.