Skip to content
Closed
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 $HOME/.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 $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" ;;
Expand Down