From 1fb2c57be30d36865dcf4316eb30471be56fc299 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 26 Dec 2021 01:36:02 +0900 Subject: [PATCH] Remove trailing hyphen from prefix --- main.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/main.sh b/main.sh index ecaf672..93fe2cc 100755 --- a/main.sh +++ b/main.sh @@ -43,6 +43,7 @@ version="${tag}" # extract the portion of the tag matching the prefix pattern if [[ ! "${prefix}" = "" ]]; then prefix=$(grep <<<"${tag}" -Eo "^${prefix}") + prefix="${prefix%-}" version="${tag#"${prefix}"}" version="${version#-}" fi