Skip to content
Permalink
Browse files

build: Honour NO_COLOR in include/scan.mk

The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
Hi all:

This is my first OpenWrt patch. I am a clean, pure newbie! 8-)

Honour NO_COLOR in Makefile function 'progress' in include/scan.mk, in the same way that include/verbose.mk does.

Signed-off-by: R. Diez <rdiezmail-openwrt@yahoo.com>
  • Loading branch information...
R. Diez authored and hauke committed Jan 21, 2019
1 parent 55b808e commit eabc1ddc4541019cf3e4c10b3a15c0710d87bca3
Showing with 8 additions and 2 deletions.
  1. +8 −2 include/scan.mk
@@ -19,9 +19,15 @@ else
endif

ifeq ($(IS_TTY),1)
define progress
ifneq ($(strip $(NO_COLOR)),1)
define progress
printf "\033[M\r$(1)" >&2;
endef
endef
else
define progress
:;
endef
endif
else
define progress
:;

0 comments on commit eabc1dd

Please sign in to comment.
You can’t perform that action at this time.