diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2019-12-26 18:23:41 -0800 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2019-12-27 20:59:11 -0800 |
commit | f695ea5bb3dedc9894b3d04076e1a318a2760558 (patch) | |
tree | 1f08ee73f7a3dcdb2eb44f911805582243f7479f /eclass/cargo.eclass | |
parent | cargo.eclass: make cargo verbosity configurable (diff) | |
download | gentoo-f695ea5bb3dedc9894b3d04076e1a318a2760558.tar.gz gentoo-f695ea5bb3dedc9894b3d04076e1a318a2760558.tar.bz2 gentoo-f695ea5bb3dedc9894b3d04076e1a318a2760558.zip |
cargo.eclass: honor NOCOLOR setting
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'eclass/cargo.eclass')
-rw-r--r-- | eclass/cargo.eclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index d0288ed2edc9..86715b83b88c 100644 --- a/eclass/cargo.eclass +++ b/eclass/cargo.eclass @@ -153,6 +153,8 @@ cargo_gen_config() { [term] verbose = true EOF + # honor NOCOLOR setting + [[ "${NOCOLOR}" = true || "${NOCOLOR}" = yes ]] && echo "color = 'never'" >> "${ECARGO_HOME}/config" } # @FUNCTION: cargo_src_compile |