From: Philippe Mathieu-Daudé Date: Thu, 7 Mar 2019 14:58:37 +0000 (+0100) Subject: tests/bios-tables: Improve portability by searching bash in the $PATH X-Git-Tag: v4.0.0-rc0~48^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa59483d36818b5c4b164e99abcab1106e6825e0;p=thirdparty%2Fqemu.git tests/bios-tables: Improve portability by searching bash in the $PATH Bash is not always installed as /bin/bash. In particular on OpenBSD, the package installs it in /usr/local/bin. Use the 'env' shebang to search bash in the $PATH. Reviewed-by: Kamil Rytarowski Reviewed-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Thomas Huth --- diff --git a/tests/data/acpi/rebuild-expected-aml.sh b/tests/data/acpi/rebuild-expected-aml.sh index bf9ba242add..abdff70a0d1 100755 --- a/tests/data/acpi/rebuild-expected-aml.sh +++ b/tests/data/acpi/rebuild-expected-aml.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/usr/bin/env bash # # Rebuild expected AML files for acpi unit-test