fix(workflow): ensure version suffix is only removed if defined
This commit is contained in:
@@ -701,7 +701,9 @@ jobs:
|
|||||||
[ -e "${candidate}" ] || continue
|
[ -e "${candidate}" ] || continue
|
||||||
name="${candidate##*/}"
|
name="${candidate##*/}"
|
||||||
version="${name#${prefix}}"
|
version="${name#${prefix}}"
|
||||||
|
if [ -n "${suffix}" ]; then
|
||||||
version="${version%${suffix}}"
|
version="${version%${suffix}}"
|
||||||
|
fi
|
||||||
|
|
||||||
case "${version}" in
|
case "${version}" in
|
||||||
*[!0-9.]*|""|*.*.*.*)
|
*[!0-9.]*|""|*.*.*.*)
|
||||||
|
|||||||
Reference in New Issue
Block a user