diff mbox series

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

Message ID 20220805023417.14100-1-duncan_roe@optusnet.com.au
State Accepted, archived
Delegated to: Pablo Neira
Headers show
Series [libnetfilter_queue] build: doc: Update build_man.sh to find bash in PATH | expand

Commit Message

Duncan Roe Aug. 5, 2022, 2:34 a.m. UTC
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.

Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au>
---
 doxygen/build_man.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/doxygen/build_man.sh b/doxygen/build_man.sh
index c68876c..0d3be4c 100755
--- a/doxygen/build_man.sh
+++ b/doxygen/build_man.sh
@@ -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.