diff options
| author | Niclas Zeising <zeising@daemonic.se> | 2020-08-10 22:47:09 +0200 |
|---|---|---|
| committer | Niclas Zeising <zeising@daemonic.se> | 2020-08-13 13:11:33 +0200 |
| commit | db01b2d6062d4c28cd82a32f42e566d05480d06e (patch) | |
| tree | 17f18cac7f36044faf56dfa8299075b258375fb2 /test | |
| parent | bcb79eed391d06fc4e75a39d19da91b41ff344ea (diff) | |
| download | libevdev-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-x | test/generate-gcov-report.sh | 4 | ||||
| -rwxr-xr-x | test/test-static-symbols-leak.sh | 2 |
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 |
