Hasan Iqbal commited on
Commit
ad40307
1 Parent(s): c2f8c9c

Fixed release script for prereleasing

Browse files
Files changed (1) hide show
  1. scripts/release.sh +2 -2
scripts/release.sh CHANGED
@@ -36,9 +36,9 @@ VERSION_BUMP=${VERSION:1}
36
  BRANCH=$(git rev-parse --abbrev-ref HEAD)
37
 
38
  # Require valid format for version
39
- rx='^v[0-9]+\.[0-9]+\.[0-9]+(-(dev|rc)[0-9]+)?$'
40
  if ! [[ $VERSION =~ $rx ]]; then
41
- c_echo $RED "The version must be in the format 'vX.X.X'"
42
  exit 1
43
  fi
44
 
 
36
  BRANCH=$(git rev-parse --abbrev-ref HEAD)
37
 
38
  # Require valid format for version
39
+ rx='^v[0-9]+\.[0-9]+\.[0-9]+((a|alpha|b|beta|dev|rc)[0-9]+)?$'
40
  if ! [[ $VERSION =~ $rx ]]; then
41
+ c_echo $RED "The version must be in the format 'vX.X.X or vX.X.XaX or vX.X.XalphaX or vX.X.XbX or vX.X.XbetaX or vX.X.XdevX or vX.X.XrcX'"
42
  exit 1
43
  fi
44