Skip to content

Commit

Permalink
Remove trailing hyphen from prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Dec 25, 2021
1 parent 026cd7d commit 1fb2c57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fb2c57

Please sign in to comment.