Skip to content

Commit

Permalink
Fix SC2295 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Dec 21, 2021
1 parent 7664e97 commit 5dc2f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 5dc2f64

Please sign in to comment.