Commit c638ef33 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Use 'ruby script/upgrade.rb -y' instead of ENV

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 51c9f0fd
......@@ -12,7 +12,7 @@ module Gitlab
puts "You use latest GitLab version"
else
puts "Newer GitLab version is available"
answer = if ENV['force'] == "yes"
answer = if ARGV.first == "-y"
"yes"
else
prompt("Do you want to upgrade (yes/no)? ".blue, %w{yes no})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment