From 91a93d6f2b092dbc57b75eb7dcee4266ea2b0aa0 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 13 May 2019 18:51:47 -0400 Subject: [PATCH] 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 --- test/f | 2 +- test/m | 2 +- test/test_all.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.47.3