From 18f45ebc2c818aaf4a7d84a159658384f7704ccb Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 21 Mar 2019 21:51:27 -0700 Subject: [PATCH] Use installed binaries if not within the cargo workspace --- multinode-demo/common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/multinode-demo/common.sh b/multinode-demo/common.sh index 56ac41beb1..3d2a85841d 100644 --- a/multinode-demo/common.sh +++ b/multinode-demo/common.sh @@ -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"