From 6481412c58b18fc2645f529e70266783dad276fd Mon Sep 17 00:00:00 2001 From: Arunesh Dwivedi Date: Wed, 3 Jun 2026 08:00:22 +0000 Subject: [PATCH] fix: change default install dir from ./bin to /var/home/kushald/.local/bin The install script was defaulting to ./bin (relative to current working directory) instead of a proper user bin directory. This caused act to be installed in whatever directory the user happened to be in when running the install script, making it unfindable. Fixes #2519 --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index be63793622e..4aac69206c0 100755 --- a/install.sh +++ b/install.sh @@ -10,7 +10,7 @@ usage() { $this: download go binaries for nektos/act Usage: $this [-b bindir] [-d] [-f] [tag] - -b sets bindir or installation directory, Defaults to ./bin + -b sets bindir or installation directory, Defaults to $HOME/.local/bin -d turns on debug logging -f forces installation, bypassing version checks [tag] is a tag from @@ -21,10 +21,10 @@ EOF } parse_args() { - #BINDIR is ./bin unless set be ENV + #BINDIR is $HOME/.local/bin unless set by ENV # over-ridden by flag below - BINDIR=${BINDIR:-./bin} + BINDIR=${BINDIR:-"$HOME/.local/bin"} while getopts "b:dfh?x" arg; do case "$arg" in b) BINDIR="$OPTARG" ;;