This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 274bff234a tool/Config.mk:use bash with or without verbosity enabled
274bff234a is described below
commit 274bff234a49279d38bd52f76abd7212db888937
Author: xuxin19 <[email protected]>
AuthorDate: Thu Dec 21 15:57:28 2023 +0800
tool/Config.mk:use bash with or without verbosity enabled
Signed-off-by: xuxin19 <[email protected]>
---
tools/Config.mk | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/tools/Config.mk b/tools/Config.mk
index 5adba2d829..92c753b8f6 100644
--- a/tools/Config.mk
+++ b/tools/Config.mk
@@ -38,12 +38,14 @@ endif
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
export SHELL=cmd
-else ifeq ($(V),)
+else
BASHCMD := $(shell command -v bash 2> /dev/null)
ifneq ($(BASHCMD),)
export SHELL=$(BASHCMD)
- export ECHO_BEGIN=@echo -ne "\033[1K\r"
- export ECHO_END=$(ECHO_BEGIN)
+ ifeq ($(V),)
+ export ECHO_BEGIN=@echo -ne "\033[1K\r"
+ export ECHO_END=$(ECHO_BEGIN)
+ endif
endif
endif