Skip to content

Commit

Permalink
tool/Config.mk:use bash with or without verbosity enabled
Browse files Browse the repository at this point in the history
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
  • Loading branch information
xuxin930 authored and xiaoxiang781216 committed Dec 21, 2023
1 parent 40843b7 commit 274bff2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tools/Config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 274bff2

Please sign in to comment.