diff options
author | Philip Prindeville <philipp@redfish-solutions.com> | 2018-04-10 16:57:06 -0600 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-05-05 09:44:43 +0200 |
commit | e495a050693952956a81847669b8b7888b4cd769 (patch) | |
tree | 929ce3040c6b2b56980fabaad8ac08595a85d860 /scripts/env | |
parent | 1e90ba895806c873539b7975ce0567da28b6c870 (diff) | |
download | upstream-e495a050693952956a81847669b8b7888b4cd769.tar.gz upstream-e495a050693952956a81847669b8b7888b4cd769.tar.bz2 upstream-e495a050693952956a81847669b8b7888b4cd769.zip |
env: only use color diffs on terminals
When sending script/env diff's output to a file or pipeline, you
don't want escape characters for ANSI color sequences fouling the
byte stream.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Diffstat (limited to 'scripts/env')
-rwxr-xr-x | scripts/env | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/env b/scripts/env index 63e26eb154..84166ae5fe 100755 --- a/scripts/env +++ b/scripts/env @@ -104,7 +104,7 @@ env_list() { env_diff() { env_init env_sync_data - git diff --cached --color + git diff --cached --color=auto env_link_config } |