Commit ba57c014 authored by alvarius's avatar alvarius Committed by GitHub

chore(contracts-bedrock): print error message if generate-l2-genesis.sh fails (#9566)

* chore(contracts-bedrock): print error message if generate-l2-genesis.sh fails

* add quotes
parent 4354aa88
......@@ -63,12 +63,16 @@ if mkdir -- "$LOCKDIR" > /dev/null 2>&1; then
fi
if [ ! -f "$OUTFILE_L2" ]; then
go run "$OP_NODE" genesis l2 \
tempfile=$(mktemp)
if ! go run "$OP_NODE" genesis l2 \
--deploy-config "$CONTRACTS_DIR/deploy-config/hardhat.json" \
--l1-deployments "$DEPLOY_ARTIFACT" \
--l1-starting-block "$L1_STARTING_BLOCK_PATH" \
--outfile.l2 "$OUTFILE_L2" \
--outfile.rollup "$OUTFILE_ROLLUP" > /dev/null 2>&1
--outfile.rollup "$OUTFILE_ROLLUP" 2>"$tempfile"; then
cat "$tempfile" >&2
fi
rm "$tempfile"
fi
else
# Wait up to 5 minutes for the lock to be released
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment