foundry-rs / foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
https://getfoundry.sh
Apache License 2.0
8.33k stars 1.76k forks source link

fix: correct shell substitution in installer #9351

Closed mdqst closed 1 day ago

mdqst commented 2 days ago

Description: This pull request addresses a small issue in the script where there was a typographical error in the line:

FOUNDRY_DIR="${FOUNDRY_DIR-"$BASE_DIR/.foundry"}"

The correct syntax for setting a default value using parameter expansion should be:

FOUNDRY_DIR="${FOUNDRY_DIR:-"$BASE_DIR/.foundry"}"

Importance:

By correcting this, the script now functions as expected, ensuring proper assignment of the FOUNDRY_DIR variable and avoiding potential issues in its execution.