From 6b6219faf0a53b781b7fd83dabefc8e8f90b5995 Mon Sep 17 00:00:00 2001 From: Ammar Arif Date: Sun, 28 Apr 2024 02:19:26 +0800 Subject: [PATCH] Fix `dojoup` script when installing from git (#1895) fix install cmd --- dojoup/dojoup | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dojoup/dojoup b/dojoup/dojoup index 41e74de69c..6ded3265e8 100755 --- a/dojoup/dojoup +++ b/dojoup/dojoup @@ -209,9 +209,11 @@ EOF ensure git checkout "$DOJOUP_COMMIT" fi - # Build the repo and install the binaries locally to the .dojo bin directory. - # --root appends /bin to the directory it is given, so we pass DOJO_DIR. - ensure cargo install --path ./dojo --bin dojo --locked --force --root "$DOJO_DIR" + for bin in "${BINS[@]}"; do + # Build the repo and install the binaries locally to the .dojo bin directory. + # --root appends /bin to the directory it is given, so we pass DOJO_DIR. + ensure cargo install --path ./bin/$bin $bin --locked --force --root "$DOJO_DIR" + done say "done" welcome_msg