diff --git a/scripts/devenv.sh b/scripts/devenv.sh index 3584f8652c..d0b723a53b 100755 --- a/scripts/devenv.sh +++ b/scripts/devenv.sh @@ -66,8 +66,8 @@ PATH="${LIGHT_PROTOCOL_TOPLEVEL}/.local/cargo/bin:${PATH}" PATH="${LIGHT_PROTOCOL_TOPLEVEL}/.local/go/bin:${PATH}" PATH="${LIGHT_PROTOCOL_TOPLEVEL}/.local/npm-global/bin:${PATH}" -# Remove the original Rust-related PATH entries -PATH=$(echo "$PATH" | tr ':' '\n' | grep -vE "/.rustup/|/.cargo/" | tr '\n' ':' | sed 's/:$//') +# Remove the original Rust-related PATH entries and global Solana installations +PATH=$(echo "$PATH" | tr ':' '\n' | grep -vE "/.rustup/|/.cargo/|/.local/share/solana/" | tr '\n' ':' | sed 's/:$//') # Define alias of `light` to use the CLI built from source (only if not in CI) if [ -z "${CI:-}" ]; then