Use installed binaries if not within the cargo workspace

This commit is contained in:
Michael Vines 2019-03-21 21:51:27 -07:00 committed by Grimes
parent e6b9babf53
commit f777ed76a3
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ if [[ $(uname) != Linux ]]; then
fi
fi
if [[ -n $USE_INSTALL ]]; then # Assume |./scripts/cargo-install-all.sh| was run
if [[ -n $USE_INSTALL || ! -f "$(dirname "${BASH_SOURCE[0]}")"/../Cargo.toml ]]; then
solana_program() {
declare program="$1"
printf "solana-%s" "$program"