diff --git a/foundryup/foundryup b/foundryup/foundryup index 42a1bf6c6..5655ba745 100755 --- a/foundryup/foundryup +++ b/foundryup/foundryup @@ -3,7 +3,7 @@ set -eo pipefail # NOTE: if you make modifications to this script, please increment the version number. # WARNING: the SemVer pattern: major.minor.patch must be followed as we use it to determine if the script is up to date. -FOUNDRYUP_INSTALLER_VERSION="1.8.0" +FOUNDRYUP_INSTALLER_VERSION="1.8.1" BASE_DIR=${XDG_CONFIG_HOME:-$HOME} FOUNDRY_DIR=${FOUNDRY_DIR:-"$BASE_DIR/.foundry"} @@ -585,14 +585,27 @@ use() { # anvil), so `base-forge test` / `base-anvil` just work with no # foundry.toml changes. The real binary stays in the versioned dir. real_bin="$FOUNDRY_VERSION_DIR/$bin" - anvil_flag="" - [ "$bin" = "anvil" ] && anvil_flag=" --base" - cat > "$bin_path" < "$bin_path" <&2 +exec env FOUNDRY_BASE=true "$real_bin" "\$@" +WRAP + else + anvil_flag="" + [ "$bin" = "anvil" ] && anvil_flag=" --base" + cat > "$bin_path" < $real_bin" continue