From: Jeffrey Walton Date: Mon, 13 May 2019 22:51:47 +0000 (-0400) Subject: Fix shebang X-Git-Tag: release-1.7.1-rc1~4^2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91a93d6f2b092dbc57b75eb7dcee4266ea2b0aa0;p=thirdparty%2Fldns.git Fix shebang 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 --- diff --git a/test/f b/test/f index e917832a..0c8cf881 100755 --- 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 a6e19d99..d472c44a 100755 --- 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 diff --git a/test/test_all.sh b/test/test_all.sh index 5e2645bc..cdc4eca8 100755 --- a/test/test_all.sh +++ b/test/test_all.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # do ldns tests cd test . common.sh