Skip to content

[tooling] anvil_fork.sh missing set -euo pipefail — failed commands silently continue, orphan anvil #238

@obchain

Description

@obchain

Refs #52

File: scripts/anvil_fork.sh

Problem

Script lacks set -euo pipefail. A failed upstream probe or malformed anvil flag does not abort; later commands continue in undefined state. Anvil may boot with bad args, orphan its process, block port 8545 for the next run.

Fix

Add as first line after shebang:

#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'

Re-run shellcheck (shellcheck scripts/anvil_fork.sh) to catch other safety issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglayer:devopsCI / deploy / infra / telemetrypr-reviewFindings from PR review processpriority:p1-coreCore MVP scopestatus:readyScoped and ready to pick up

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions