fix(scripts): improve version argument handling in install script
All checks were successful
Auto Changelog & Release / release (push) Successful in 5s
All checks were successful
Auto Changelog & Release / release (push) Successful in 5s
This commit is contained in:
@@ -7,7 +7,11 @@ set -euo pipefail
|
||||
REPO="orhun/git-cliff"
|
||||
ARCH_OS="x86_64-unknown-linux-gnu"
|
||||
INSTALL_DIR="/usr/local/bin"
|
||||
VERSION="${1:-latest}"
|
||||
if [[ -z "${1:-}" ]]; then
|
||||
VERSION="latest"
|
||||
else
|
||||
VERSION="$1"
|
||||
fi
|
||||
|
||||
need() { command -v "$1" >/dev/null || { echo "$1 is missing"; exit 1; }; }
|
||||
need curl; need tar; need grep; need sed; need awk; need jq
|
||||
|
||||
Reference in New Issue
Block a user