projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
build: Fix print without color
[openwrt/openwrt.git]
/
include
/
scan.mk
diff --git
a/include/scan.mk
b/include/scan.mk
index e6b21b27b009ce14f8683980add8d2be3bea9340..d9cd4f7e8c30845a3de2725275e1188c694ed3a5 100644
(file)
--- a/
include/scan.mk
+++ b/
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
+ printf "\r$(1)" >&2;
+ endef
+ endif
else
define progress
:;