From c638ef334848e1cd94cb2e4dbff07d3d227d1b77 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 13 Dec 2013 16:23:38 +0200 Subject: [PATCH] Use 'ruby script/upgrade.rb -y' instead of ENV --- lib/gitlab/upgrader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/upgrader.rb b/lib/gitlab/upgrader.rb index 03eff2b..93c0aad 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}) -- libgit2 0.21.2