Skip to content

Commit

Permalink
chore: localnet asks binary locations before destroying (#4225)
Browse files Browse the repository at this point in the history
chore: localnet asks binary locations before destroying
  • Loading branch information
msgmaxim authored Nov 9, 2023
1 parent 2eb196d commit 0b86f99
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions localnet/manage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,17 @@ get-workflow() {
fi
echo "You have chosen $NODE_COUNT node(s) network"
NODE_COUNT="$NODE_COUNT-node"
fi
}

build-localnet() {
if [[ -z "${BINARY_ROOT_PATH}" ]]; then
if [[ -z "${BINARY_ROOT_PATH}" ]]; then
echo "💻 Please provide the location to the binaries you would like to use."
read -p "(default: ./target/debug/) " BINARY_ROOT_PATH
echo
export BINARY_ROOT_PATH=${BINARY_ROOT_PATH:-"./target/debug"}
fi
fi
}

build-localnet() {

if [[ ! -d $BINARY_ROOT_PATH ]]; then
echo "❌ Couldn't find directory at $BINARY_ROOT_PATH"
Expand Down

0 comments on commit 0b86f99

Please sign in to comment.