Skip to content

Commit

Permalink
fix(zkstack): Move installation always to .local/bin (#3108)
Browse files Browse the repository at this point in the history
## What ❔

<!-- What are the changes this PR brings about? -->
<!-- Example: This PR adds a PR template to the repo. -->
<!-- (For bigger PRs adding more context is appreciated) -->

## Why ❔

<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] 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`.
  • Loading branch information
Deniallugo authored Oct 16, 2024
1 parent 8790240 commit 223e4dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions zkstack_cli/zkstackup/install
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
3 changes: 1 addition & 2 deletions zkstack_cli/zkstackup/zkstackup
Original file line number Diff line number Diff line change
@@ -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=()
Expand Down

0 comments on commit 223e4dd

Please sign in to comment.