We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 661c2da commit 144b40dCopy full SHA for 144b40d
update-version.sh
@@ -13,9 +13,9 @@ fi
13
version="$1"
14
message="$2"
15
16
-# Validate version format (strictly a.b.c)
17
-if [[ ! "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
18
- echo "Warning: Version '$version' does not match the standard format a.b.c."
+# Validate version format (allow x.y or x.y.z)
+if [[ ! "$version" =~ ^[0-9]+\.[0-9]+(\.[0-9]+)?$ ]]; then
+ echo "Warning: Version '$version' does not match the standard format x.y or x.y.z."
19
echo "Please validate the version number manually."
20
read -p "Do you want to continue? [y/N]: " confirm
21
if [[ ! "$confirm" =~ ^[Yy]$ ]]; then
0 commit comments