From f695ea5bb3dedc9894b3d04076e1a318a2760558 Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Thu, 26 Dec 2019 18:23:41 -0800 Subject: cargo.eclass: honor NOCOLOR setting Signed-off-by: Georgy Yakovlev --- eclass/cargo.eclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'eclass') 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 -- cgit v1.2.3-65-gdbad