diff options
author | Nicolas Goudry | 2023-11-26 11:03:30 +0100 |
---|---|---|
committer | Nicolas Goudry | 2023-11-26 11:03:30 +0100 |
commit | a6fabb205b4b2618ea8bfeab69a77384f2b32a5e (patch) | |
tree | 64cf6caaa980263592a9e9699aff39b3dd554a9c | |
parent | 9d2a2dcaa4d823201769efbc547dcc2e798b436d (diff) | |
download | aur-a6fabb205b4b2618ea8bfeab69a77384f2b32a5e.tar.gz |
refactor: update release script
-rwxr-xr-x | release.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/release.sh b/release.sh index 2cc980495191..9ae44a460c6d 100755 --- a/release.sh +++ b/release.sh @@ -11,7 +11,6 @@ DIM="\e[2m" Y="\e[33m" R="\e[31m" G="\e[32m" -B="\e[34m" die() { >&2 echo -e "${R}ERROR: $*${NC}" @@ -26,12 +25,12 @@ needs_arg() { usage() { echo - echo -e "${BOLD}Release new AUR version of package.${NC}" + echo -e "Release new AUR version of package." echo - echo -e "${B}Usage:${NC}" - echo " $SCRIPT_NAME [OPTION]..." + echo -e "${BOLD}Usage:${NC}" + echo -e " ${DIM}\$${NC} $SCRIPT_NAME [OPTION]..." echo - echo -e "${B}Options:${NC}" + echo -e "${BOLD}Options:${NC}" echo " -c, --commit Autocommit and push to release repository" echo " -m, --mode Set cloning method (allowed values: https, ssh)" echo -e "${DIM} Default: ssh${NC}" @@ -152,6 +151,7 @@ while getopts 'cm:v:h-:' OPT; do # shellcheck disable=SC2295 OPTARG="${OPTARG#$OPT}" # extract long option argument (may be empty) OPTARG="${OPTARG#=}" # if long option argument, remove assigning `=` + OPTARG="${OPTARG# }" # if long option argument, remove assigning ` ` fi case "$OPT" in |