diff options
| author | Philip Prindeville | 2018-04-10 22:57:06 +0000 |
|---|---|---|
| committer | John Crispin | 2018-05-05 07:44:43 +0000 |
| commit | e495a050693952956a81847669b8b7888b4cd769 (patch) | |
| tree | 929ce3040c6b2b56980fabaad8ac08595a85d860 | |
| parent | 1e90ba895806c873539b7975ce0567da28b6c870 (diff) | |
| download | openwrt-e495a050693952956a81847669b8b7888b4cd769.tar.gz | |
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>
| -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 } |