Fixed issue where the ASK environnement variable..

was not taken into account when doing a ASK=true rake install
This commit is contained in:
Ali Karagoz 2012-12-27 00:38:53 +01:00
parent 018f744346
commit d2b202c43d

View File

@ -129,7 +129,7 @@ def install_prezto
end end
def want_to_install? (section) def want_to_install? (section)
if ENV["ask"]=="true" if ENV["ASK"]=="true"
puts "Would you like to install configuration files for: #{section}? [y]es, [n]o" puts "Would you like to install configuration files for: #{section}? [y]es, [n]o"
STDIN.gets.chomp == 'y' STDIN.gets.chomp == 'y'
else else