Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: install into usr/local/bin #2630

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 /usr/local/bin
-d turns on debug logging
-f forces installation, bypassing version checks
[tag] is a tag from
Expand All @@ -21,10 +21,10 @@ EOF
}

parse_args() {
#BINDIR is ./bin unless set be ENV
# BINDIR is /usr/local/bin unless set by ENV
# over-ridden by flag below

BINDIR=${BINDIR:-./bin}
BINDIR=${BINDIR:-/usr/local/bin}
while getopts "b:dfh?x" arg; do
case "$arg" in
b) BINDIR="$OPTARG" ;;
Expand Down