Commit c638ef334848e1cd94cb2e4dbff07d3d227d1b77
1 parent
51c9f0fd
Exists in
master
and in
4 other branches
Use 'ruby script/upgrade.rb -y' instead of ENV
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/gitlab/upgrader.rb
@@ -12,7 +12,7 @@ module Gitlab | @@ -12,7 +12,7 @@ module Gitlab | ||
12 | puts "You use latest GitLab version" | 12 | puts "You use latest GitLab version" |
13 | else | 13 | else |
14 | puts "Newer GitLab version is available" | 14 | puts "Newer GitLab version is available" |
15 | - answer = if ENV['force'] == "yes" | 15 | + answer = if ARGV.first == "-y" |
16 | "yes" | 16 | "yes" |
17 | else | 17 | else |
18 | prompt("Do you want to upgrade (yes/no)? ".blue, %w{yes no}) | 18 | prompt("Do you want to upgrade (yes/no)? ".blue, %w{yes no}) |