]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
tests/multiboot: Improve portability by searching bash in the $PATH
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 7 Mar 2019 14:58:36 +0000 (15:58 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 8 Mar 2019 11:26:45 +0000 (12:26 +0100)
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 <n54@gmx.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/multiboot/run_test.sh

index 6c33003e716e9428b0cf3ca644ea9223c8dd72be..98df91e6af98451760e55d949686c4712813287a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Copyright (c) 2013 Kevin Wolf <kwolf@redhat.com>
 #