Skip to content

Commit a351035

Browse files
committed
check tag format, todo: check tags greater than last
1 parent 1454985 commit a351035

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/release.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ check_prerequisites() {
1515
echo "ERROR: give version number, e.g. v0.8.2"
1616
exit 1
1717
fi
18+
19+
if [[ $1 =~ ^v[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,3}$ ]]; then
20+
echo "version string format is CORRECT"
21+
else
22+
echo "version string format ins't correct"
23+
exit 1
24+
fi
25+
exit 0
26+
1827
}
1928

2029
check_prerequisites $1

0 commit comments

Comments
 (0)