Skip to content

Commit

Permalink
Make the --color=false option, work properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
andxyz committed Dec 2, 2021
1 parent 1445adc commit 4a52281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/foreman/engine/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def self.enable(io, force=false)
end

def color?
return true if @@color_force
return @@color_force unless @@color_force.nil?
return false if Foreman.windows?
return false unless self.respond_to?(:isatty)
self.isatty && ENV["TERM"]
Expand Down

0 comments on commit 4a52281

Please sign in to comment.