]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Fix shebang
authorJeffrey Walton <noloader@gmail.com>
Mon, 13 May 2019 22:51:47 +0000 (18:51 -0400)
committerJeffrey Walton <noloader@gmail.com>
Mon, 13 May 2019 22:51:47 +0000 (18:51 -0400)
Some operating systems, like OpenBSD, do not provide Bash by default. Once Bash is installed, it is located at /usr/local/bin, and not /bin. The shebang /usr/bin/env will locate Bash (if installed) and avoid the failure associated with hard coded /bin/bash

test/f
test/m
test/test_all.sh

diff --git a/test/f b/test/f
index e917832a6b7f94652ab18787a0c6e5005253843e..0c8cf88137d3b5382b052cc782eab62ee0474435 100755 (executable)
--- a/test/f
+++ b/test/f
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # get all the functions from ldns
 
diff --git a/test/m b/test/m
index a6e19d99396d754b080c71483a8462362a2711fd..d472c44a6dfbd42ebce8ad2e7538265daf77d696 100755 (executable)
--- a/test/m
+++ b/test/m
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 egrep -v '^#' ../doc/function_manpages | sed 's/, /\n/g' | sed 's/|.*$//' | sort | uniq
index 5e2645bc6fef1eee69f7e2d802d314f42dedf0d2..cdc4eca8c405ffeb0d60833db451244f603e2d07 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # do ldns tests
 cd test
 . common.sh