diff options
author | James Lopez <james@jameslopez.es> | 2018-04-04 14:33:14 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-04-04 14:33:14 +0200 |
commit | 385706510ea6e4ec5bdc439560bace5252484eb5 (patch) | |
tree | a3ca5faaaa5316c9b91efbcee3b1b77a5eca428f | |
parent | 6ad56124585305dd4051bfdfe0e25367228aa437 (diff) | |
download | gitlab-ce-security-dev-docs.tar.gz |
add version regex checksecurity-dev-docs
-rwxr-xr-x | bin/secpick | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/secpick b/bin/secpick index 867ee537612..76ae231e913 100755 --- a/bin/secpick +++ b/bin/secpick @@ -33,7 +33,8 @@ end parser.parse! -abort("Missing options. Use #{$0} --help to see the list of options available") if options.values.include?(nil) +abort("Missing options. Use #{$0} --help to see the list of options available".red) if options.values.include?(nil) +abort("Wrong version format #{options[:version].bold}".red) unless options[:version] =~ /\A\d*\-\d*\Z/ branch = [BRANCH_PREFIX, options[:branch], options[:version]].join('-').freeze stable_branch = "#{options[:version]}-#{STABLE_BRANCH_SUFFIX}".freeze |