tool/Config.mk:use bash with or without verbosity enabled

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2023-12-21 15:57:28 +08:00 committed by Xiang Xiao
parent 40843b79eb
commit 274bff234a
1 changed files with 5 additions and 3 deletions

View File

@ -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