Skip to contentSkip to conversation

build: doc: Update build_man.sh to find bash in PATH

PATCH New Duncan Roe 1 participant 1 message Aug 5, 2022 netfilter

lore
Share & tools
lore

Duncan Roe

author
#0 lore raw

PATCH 1/1 build: doc: Update build_man.sh to find bash in PATH

The use of /bin/bash has been reported as a problem during a cross build of libmnl with a build system running macOS or BSD.

build_man.sh is intended to be usable in a libmnl build, so don't start with #!/bin/bash.

---
 doxygen/build_man.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
doxygen/build_man.sh +2 -1
index c68876c..0d3be4c 100755
@@ -1,4 +1,5 @@
-#!/bin/bash -p
+#!/bin/sh
+[ -n "$BASH" ] || exec bash -p $0
 
 # Script to process man pages output by doxygen.
 # We need to use bash for its associative array facility.
Signature · 1 line
2.35.1