mirror of https://github.com/hak5/openwrt.git
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>openwrt-18.06
parent
1e90ba8958
commit
e495a05069
|
@ -104,7 +104,7 @@ env_list() {
|
||||||
env_diff() {
|
env_diff() {
|
||||||
env_init
|
env_init
|
||||||
env_sync_data
|
env_sync_data
|
||||||
git diff --cached --color
|
git diff --cached --color=auto
|
||||||
env_link_config
|
env_link_config
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue