From 133fc584c06f2013e957f27a431ae3e292d9f3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85smund=20=C3=98deg=C3=A5rd?= Date: Thu, 2 Jul 2026 09:38:24 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20add=20install=20option=20in=20ma?= =?UTF-8?q?ke?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/make.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/shell/make.sh b/shell/make.sh index 28d92ec..2542ccd 100755 --- a/shell/make.sh +++ b/shell/make.sh @@ -12,6 +12,9 @@ set -eu SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd) REPO_ROOT=$(dirname "$SCRIPT_DIR") +PREFIX=${PREFIX:-$HOME/.local} +EXT=$(go env GOEXE) + cmd=${1:-build} @@ -23,6 +26,11 @@ case "$cmd" in echo "Building pass..." (cd "$REPO_ROOT/pass" && ./build.sh "$cmd") ;; + install) + echo "Install to $PREFIX" + cp $REPO_ROOT/shell/pass$EXT $PREFIX/bin + cp $REPO_ROOT/shell/gitprompt$EXT $PREFIX/bin + ;; *) echo "Usage: $0 [build|build-all|clean|update-deps]" >&2 exit 1