diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-01-12 21:34:23 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-12 21:34:23 -0500 |
commit | a43fd5ce6d369c35b3ea421f045721d20f1c8ada (patch) | |
tree | fbeb1e337fffc4e9cd708114546245eaed551cf1 | |
parent | 1813adcdeaef1f27c17dfb98ecf07c57d7687e11 (diff) | |
download | gitlab-ce-a43fd5ce6d369c35b3ea421f045721d20f1c8ada.tar.gz |
Disable colorization if STDOUT is not a tty
-rw-r--r-- | lib/tasks/gitlab/task_helpers.rake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/task_helpers.rake b/lib/tasks/gitlab/task_helpers.rake index ebe516ec879..8c63877e51c 100644 --- a/lib/tasks/gitlab/task_helpers.rake +++ b/lib/tasks/gitlab/task_helpers.rake @@ -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 |