Disable colorization if STDOUT is not a tty
This commit is contained in:
parent
1813adcdea
commit
a43fd5ce6d
|
@ -2,6 +2,8 @@ module Gitlab
|
|||
class TaskAbortedByUserError < StandardError; end
|
||||
end
|
||||
|
||||
String.disable_colorization = true unless STDOUT.isatty
|
||||
|
||||
namespace :gitlab do
|
||||
|
||||
# Ask if the user wants to continue
|
||||
|
|
Loading…
Reference in New Issue