File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,14 @@ enforce_latest_code() {
3232 fi
3333}
3434
35- # Function to validate the version number format x.y.z(-beta.w )
35+ # Function to validate the version number format x.y.z(bw )
3636update_and_validate_version () {
3737 while true ; do
3838 # Prompt the user to input the version number
39- read -p " Enter the version number (format: x.y.z(-beta.w )): " version
39+ read -p " Enter the version number (format: x.y.z(bw )): " version
4040
4141 # Validate the version number format
42- if [[ " ${version} " =~ ^[0-9]+\. [0-9]+\. [0-9]+ (-beta \. [0-9]+)? $ ]]; then
42+ if [[ " ${version} " =~ ^[0-9]+\. [0-9]+\. [0-9]+ (b [0-9]+)? $ ]]; then
4343 if [[ " ${current_version} " != " ${version} " ]]; then
4444 # TODO: Check the less than case as well.
4545 echo " New version number is: ${version} "
@@ -49,7 +49,7 @@ update_and_validate_version() {
4949 fi
5050 else
5151 echo " Invalid version number format: ${version} "
52- echo " Please enter a version number in the 'x.y.z(-beta.w )' format."
52+ echo " Please enter a version number in the 'x.y.z(bw )' format."
5353 fi
5454 done
5555}
You can’t perform that action at this time.
0 commit comments