summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNiclas Zeising <zeising@daemonic.se>2020-08-10 22:47:09 +0200
committerNiclas Zeising <zeising@daemonic.se>2020-08-13 13:11:33 +0200
commitdb01b2d6062d4c28cd82a32f42e566d05480d06e (patch)
tree17f18cac7f36044faf56dfa8299075b258375fb2 /test
parentbcb79eed391d06fc4e75a39d19da91b41ff344ea (diff)
downloadlibevdev-db01b2d6062d4c28cd82a32f42e566d05480d06e.tar.gz
Don't hardcode /bin/bash
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>
Diffstat (limited to 'test')
-rwxr-xr-xtest/generate-gcov-report.sh4
-rwxr-xr-xtest/test-static-symbols-leak.sh2
2 files changed, 4 insertions, 2 deletions
diff --git a/test/generate-gcov-report.sh b/test/generate-gcov-report.sh
index f871a5b..ff27845 100755
--- a/test/generate-gcov-report.sh
+++ b/test/generate-gcov-report.sh
@@ -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> ... ]"
diff --git a/test/test-static-symbols-leak.sh b/test/test-static-symbols-leak.sh
index d1746c3..9564a2a 100755
--- a/test/test-static-symbols-leak.sh
+++ b/test/test-static-symbols-leak.sh
@@ -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