• Mark Tyneway's avatar
    contracts-bedrock: move forge check script to bash · 969e0f37
    Mark Tyneway authored
    Makes it much faster, will save a lot of time over many
    CI runs. The startup time of `ts-node` vs `bash` is just
    too large for such a simple script. We depend on unix
    filesystems and bash for other commands.
    969e0f37
verify-foundry-install.sh 414 Bytes
#!/bin/bash

if ! command -v forge &> /dev/null
then
  echo "Is Foundry not installed? Consider installing via `curl -L https://foundry.paradigm.xyz | bash` and then running `foundryup` on a new terminal. For more context, check the installation instructions in the book: https://book.getfoundry.sh/getting-started/installation.html."
  exit 1
fi

VERSION=$(forge --version)
echo "Using foundry version: $VERSION"