diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-13 18:23:38 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-13 18:23:58 +0400 |
commit | c638ef334848e1cd94cb2e4dbff07d3d227d1b77 (patch) | |
tree | 527b56b3e9e29ea76e51b85d5a3d47c7d0e0f331 /lib/gitlab/upgrader.rb | |
parent | 51c9f0fd76b4e88121c670e04b87f21b732bdeae (diff) |
Use 'ruby script/upgrade.rb -y' instead of ENV
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/gitlab/upgrader.rb')
-rw-r--r-- | lib/gitlab/upgrader.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/upgrader.rb b/lib/gitlab/upgrader.rb index 03eff2b7cae..93c0aadb40d 100644 --- a/lib/gitlab/upgrader.rb +++ b/lib/gitlab/upgrader.rb @@ -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}) |