From 223e4dd59414904f2b26afffc4b72bb78266b783 Mon Sep 17 00:00:00 2001 From: Danil Date: Wed, 16 Oct 2024 16:53:02 +0200 Subject: [PATCH] fix(zkstack): Move installation always to .local/bin (#3108) 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 `zkstack dev fmt` and `zkstack dev lint`. --- zkstack_cli/zkstackup/install | 3 +-- zkstack_cli/zkstackup/zkstackup | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/zkstack_cli/zkstackup/install b/zkstack_cli/zkstackup/install index f20ba4dd545a..849f0699bc32 100755 --- a/zkstack_cli/zkstackup/install +++ b/zkstack_cli/zkstackup/install @@ -3,8 +3,7 @@ set -eo pipefail BIN_URL="https://raw.githubusercontent.com/matter-labs/zksync-era/main/zkstack_cli/zkstackup/zkstackup" -HOME_DIR=${XDG_CONFIG_HOME:-$HOME} -BIN_DIR="$HOME_DIR/.local/bin" +BIN_DIR="$HOME/.local/bin" BIN_PATH="$BIN_DIR/zkstackup" main() { diff --git a/zkstack_cli/zkstackup/zkstackup b/zkstack_cli/zkstackup/zkstackup index 20a061620f9a..e91bbc17905c 100755 --- a/zkstack_cli/zkstackup/zkstackup +++ b/zkstack_cli/zkstackup/zkstackup @@ -1,8 +1,7 @@ #!/usr/bin/env bash set -eo pipefail -HOME_DIR=${XDG_CONFIG_HOME:-$HOME} -LOCAL_DIR=${LOCAL_DIR:-"$HOME_DIR/.local"} +LOCAL_DIR="$HOME/.local/" BIN_DIR="$LOCAL_DIR/bin" BINS=()