From 5dc2f64cffb797a326fe94d27bb04c8dbebf1ac8 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Tue, 21 Dec 2021 23:31:52 +0900 Subject: [PATCH] Fix SC2295 warning --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index 1e8ee5d..0ab63fb 100755 --- a/main.sh +++ b/main.sh @@ -42,7 +42,7 @@ version="${tag}" # extract the portion of the tag matching the prefix pattern if [[ ! "${prefix}" = "" ]]; then prefix=$(grep <<<"${tag}" -Eo "^${prefix}") - version="${tag#${prefix}}" + version="${tag#"${prefix}"}" version="${version#-}" fi version="${version#v}"