diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-03-13 18:36:26 +0000 |
---|---|---|
committer | Raphaƫl Hertzog <hertzog@debian.org> | 2020-03-16 13:32:16 +0000 |
commit | ca520eb5f0556094338e0c841dcaa970d9a28886 (patch) | |
tree | 10ebfc87bda84f81e7a4c285054d607b651d28ab /scripts/build/binary_rootfs | |
parent | 09b279b7bc02c5aeec3fc5e75732b338f92a3921 (diff) | |
download | vyos-live-build-ca520eb5f0556094338e0c841dcaa970d9a28886.tar.gz vyos-live-build-ca520eb5f0556094338e0c841dcaa970d9a28886.zip |
split stdout & stderr auto colouring
thus for some reason if one is connected to a tty and the other a file,
we still get colour in the tty by default.
in terms of options, --color and --no-color override both, no granular
ones added since it's not worth it imo.
this is backwards compatible with custom configs setting `_COLOR`.
it could be argued that setting $_COLOR to "false" for the auto non-tty
cases is redundant, which it is, but it doesn't hurt to do so; it ensures
that if anything (inc. 3rd-party hooks and such) rely on it that it
remains correct; and ensures that if anything in the future mistakenly
uses $_COLOR instead of $_COLOR_OUT|$_COLOR_ERR that at least that will
only be broken for the use case of only one of stdout|sdterr being a tty.
Gbp-Dch: Ignore
Diffstat (limited to 'scripts/build/binary_rootfs')
0 files changed, 0 insertions, 0 deletions