diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2018-04-12 04:22:43 +0300 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2018-04-12 04:22:43 +0300 |
commit | 78076fa6401d65da8aa071c9b6c9c5090ce1a52c (patch) | |
tree | 59c3fa506c5f49653d898b2c32b78cacf21ec390 /_support | |
parent | d779c028099f79360209b92473c201e07721b885 (diff) |
Alert if v-prefixed on release
Diffstat (limited to '_support')
-rwxr-xr-x | _support/release | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/_support/release b/_support/release index 1e741f12f..915c5c855 100755 --- a/_support/release +++ b/_support/release @@ -20,6 +20,12 @@ def main(version) abort "Git remote 'origin' must match #{REMOTE_REGEX}, got #{remote.inspect}" end + if version.start_with?("v") + puts "Do you really want your tag to be v#{version}? Enter 'Yes' to continue; Ctrl-C to abort" + $stdout.flush + abort unless $stdin.gets.chomp == 'Yes' + end + run!(%w[make verify]) run!(%w[make clean test]) |