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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
---
 doxygen/build_man.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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.
-- 
2.35.1




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux