Skip to content

Commit 0467079

Browse files
committed
fix: set prefix "v" in version as optional
1 parent ea92a68 commit 0467079

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/lint-versions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ for file in $(find . -print | sed 's|^./||' | grep -E "(^services/[^/]+/pyprojec
2020

2121
# special handling for CDN (is in v2 by accident)
2222
if [[ "$dirpath" == "services/cdn" ]]; then
23-
if [[ ! "$version" =~ ^v[0-2]\.[0-9]+\.[0-9]+$ ]]; then
23+
if [[ ! "$version" =~ ^v?[0-2]\.[0-9]+\.[0-9]+$ ]]; then
2424
echo ">> $dirpath"
2525
echo "The version '$version' is invalid."
2626
exit 1
@@ -29,7 +29,7 @@ for file in $(find . -print | sed 's|^./||' | grep -E "(^services/[^/]+/pyprojec
2929
fi
3030

3131
# verify version
32-
if [[ ! "$version" =~ ^v[0-1]\.[0-9]+\.[0-9]+$ ]]; then
32+
if [[ ! "$version" =~ ^v?[0-1]\.[0-9]+\.[0-9]+$ ]]; then
3333
echo ">> $dirpath"
3434
echo "The version '$version' is invalid."
3535
exit 1

0 commit comments

Comments
 (0)