diff options
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config.mk b/config.mk index 4e6a19bd8a6..1fd109f1bdf 100644 --- a/config.mk +++ b/config.mk @@ -23,6 +23,13 @@ ######################################################################### +# Set shell to bash if possible, otherwise fall back to sh +SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ + else if [ -x /bin/bash ]; then echo /bin/bash; \ + else echo sh; fi; fi) + +export SHELL + ifeq ($(CURDIR),$(SRCTREE)) dir := else |