Skip to content

Commit

Permalink
fix startTime modification
Browse files Browse the repository at this point in the history
  • Loading branch information
n0cte authored and ramilexe committed Nov 7, 2023
1 parent 043933d commit 03eb1ef
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions chains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,14 @@
github-organization: ava-labs
github-repo: avalanchego
dockerfile: avalanche
build-target: |
pre-build: |
startTime="$(sed -n 's|.*"startTime":\([^"]*\),.*|\1|p' genesis/genesis_local.json)"
if [ "$(date +%s)" -gt $startTime ]; then
sed "s/$startTime/1690862400/g" genesis/genesis_local.json > genesis/genesis_local_tmp.json
nowTime="$(date +%s)"
if [ $nowTime -gt $startTime ]; then
sed "s/$startTime/$nowTime/g" genesis/genesis_local.json > genesis/genesis_local_tmp.json
mv genesis/genesis_local_tmp.json genesis/genesis_local.json
fi
bash scripts/build.sh
build-target: bash scripts/build.sh
binaries:
- build/avalanchego

Expand Down

0 comments on commit 03eb1ef

Please sign in to comment.