build: Error out Makefile if bash can't be found 08/40608/2
authorTom Jones <thj@freebsd.org>
Tue, 6 Feb 2024 10:05:06 +0000 (10:05 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Tue, 9 Apr 2024 15:15:45 +0000 (15:15 +0000)
Type: improvement
Change-Id: I3bba4e53364dbcc0d7a373fdc9cac2db3bbb4249
Signed-off-by: Tom Jones <thj@freebsd.org>
Makefile

index a2d8b18..edd632e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,10 @@ MACHINE=$(shell uname -m)
 SUDO?=sudo -E
 DPDK_CONFIG?=no-pci
 
+ifeq ($(strip $(SHELL)),)
+$(error "bash not found, VPP requires bash to build")
+endif
+
 ,:=,
 define disable_plugins
 $(if $(1), \