We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea92a68 commit c9b3853Copy full SHA for c9b3853
1 file changed
scripts/lint-versions.sh
@@ -20,7 +20,7 @@ for file in $(find . -print | sed 's|^./||' | grep -E "(^services/[^/]+/pyprojec
20
21
# special handling for CDN (is in v2 by accident)
22
if [[ "$dirpath" == "services/cdn" ]]; then
23
- if [[ ! "$version" =~ ^v[0-2]\.[0-9]+\.[0-9]+$ ]]; then
+ if [[ ! "$version" =~ ^v?[0-2]\.[0-9]+\.[0-9]+$ ]]; then
24
echo ">> $dirpath"
25
echo "The version '$version' is invalid."
26
exit 1
@@ -29,7 +29,7 @@ for file in $(find . -print | sed 's|^./||' | grep -E "(^services/[^/]+/pyprojec
29
fi
30
31
# verify version
32
- if [[ ! "$version" =~ ^v[0-1]\.[0-9]+\.[0-9]+$ ]]; then
+ if [[ ! "$version" =~ ^v?[0-1]\.[0-9]+\.[0-9]+$ ]]; then
33
34
35
0 commit comments