From a6213ef4b128ae7f2405df3e85604462aa2522c1 Mon Sep 17 00:00:00 2001 From: Danil Date: Tue, 13 Aug 2024 14:44:41 +0200 Subject: [PATCH] feat(zk_toolbox): Adapt `zkt` binary for using zkup (#2643) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## What ❔ ## Why ❔ ## Checklist - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zk fmt` and `zk lint`. Signed-off-by: Danil --- bin/zkt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/zkt b/bin/zkt index 337ad5d7395..9447230486f 100755 --- a/bin/zkt +++ b/bin/zkt @@ -1,7 +1,13 @@ #!/usr/bin/env bash cd $(dirname $0) -cd ../zk_toolbox -cargo install --path ./crates/zk_inception --force -cargo install --path ./crates/zk_supervisor --force +if which zkup >/dev/null; then + zkup -p .. --alias +else + echo zkup does not installed, please install it https://github.com/matter-labs/zksync-era/tree/main/zk_toolbox/zkup + cd ../zk_toolbox + cargo install --path ./crates/zk_inception --force + cargo install --path ./crates/zk_supervisor --force +fi +