Don't hardcode /bin/bash
authorNiclas Zeising <zeising@daemonic.se>
Mon, 10 Aug 2020 20:47:09 +0000 (22:47 +0200)
committerNiclas Zeising <zeising@daemonic.se>
Thu, 13 Aug 2020 11:11:33 +0000 (13:11 +0200)
Don't hardcode /bin/bash, use /usr/bin/env bash instead, since not all
platforms install bash as /bin/bash.
FreeBSD, as an example, installs bash in /usr/local/bin/bash by default.

Signed-off-by: Niclas Zeising <zeising@daemonic.se>
test/generate-gcov-report.sh
test/test-static-symbols-leak.sh
tools/publish-doc

index f871a5b..ff27845 100755 (executable)
@@ -1,4 +1,6 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
+
+set -e
 
 if [[ $# -lt 2 ]]; then
     echo "Usage: ./generate-gcov-report.sh <rel-target-dir> <srcdir> [<srcdir> ... ]"
index d1746c3..9564a2a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Hack to check for leaking symbols in the static library.
 # See https://bugs.freedesktop.org/show_bug.cgi?id=82785
index 2dcd45e..4432bfd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e