env: only use color diffs on terminals
authorPhilip Prindeville <philipp@redfish-solutions.com>
Tue, 10 Apr 2018 22:57:06 +0000 (16:57 -0600)
committerJohn Crispin <john@phrozen.org>
Sat, 5 May 2018 07:44:43 +0000 (09:44 +0200)
commite495a050693952956a81847669b8b7888b4cd769
tree929ce3040c6b2b56980fabaad8ac08595a85d860
parent1e90ba895806c873539b7975ce0567da28b6c870
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>
scripts/env