Skip to content

Commit

Permalink
template path
Browse files Browse the repository at this point in the history
  • Loading branch information
dasanchez committed Feb 9, 2024
1 parent daca876 commit 1cf2d9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/add_consumer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

echo "Patching add template with spawn time..."
spawn_time=$(date -u --iso-8601=ns -d '30 secs' | sed s/+00:00/Z/ | sed s/,/./) # 30 seconds in the future
jq -r --arg SPAWNTIME "$spawn_time" '.spawn_time |= $SPAWNTIME' tests/patch_upgrade/proposal-add-template.json > proposal-add-spawn.json
jq -r --arg SPAWNTIME "$spawn_time" '.spawn_time |= $SPAWNTIME' templates/proposal-add-template.json > proposal-add-spawn.json

if $CHANGEOVER_HEIGHT_OFFSET ; then
jq -r --argjson HEIGHT "$CHANGEOVER_REV_HEIGHT" '.initial_height.revision_height |= $HEIGHT' tests/patch_upgrade/proposal-add-template.json > proposal-add-height.json
jq -r --argjson HEIGHT "$CHANGEOVER_REV_HEIGHT" '.initial_height.revision_height |= $HEIGHT' templates/proposal-add-template.json > proposal-add-height.json
spawn_time=$(date -u --iso-8601=ns | sed s/+00:00/Z/ | sed s/,/./)
jq -r --arg SPAWNTIME "$spawn_time" '.spawn_time |= $SPAWNTIME' proposal-add-height.json > proposal-add-spawn.json
fi
Expand Down

0 comments on commit 1cf2d9d

Please sign in to comment.