[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH v4 1/4] tests/multiboot: Improve portability by sear
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-block] [PATCH v4 1/4] tests/multiboot: Improve portability by searching bash in the $PATH |
Date: |
Thu, 7 Mar 2019 15:58:36 +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 <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
tests/multiboot/run_test.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/multiboot/run_test.sh b/tests/multiboot/run_test.sh
index 6c33003e71..98df91e6af 100755
--- a/tests/multiboot/run_test.sh
+++ b/tests/multiboot/run_test.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Copyright (c) 2013 Kevin Wolf <address@hidden>
#
--
2.20.1
- [Qemu-block] [PATCH v4 0/4] tests: Allow use of Ports bash and GNU sed extensions, Philippe Mathieu-Daudé, 2019/03/07
- [Qemu-block] [PATCH v4 2/4] tests/bios-tables: Improve portability by searching bash in the $PATH, Philippe Mathieu-Daudé, 2019/03/07
- [Qemu-block] [PATCH v4 1/4] tests/multiboot: Improve portability by searching bash in the $PATH,
Philippe Mathieu-Daudé <=
- [Qemu-block] [PATCH v4 4/4] qemu-iotests: Ensure GNU sed is used, Philippe Mathieu-Daudé, 2019/03/07
- [Qemu-block] [PATCH v4 3/4] qemu-iotests: Improve portability by searching bash in the $PATH, Philippe Mathieu-Daudé, 2019/03/07
- Re: [Qemu-block] [Qemu-devel] [PATCH v4 0/4] tests: Allow use of Ports bash and GNU sed extensions, Thomas Huth, 2019/03/07
- Re: [Qemu-block] [PATCH v4 0/4] tests: Allow use of Ports bash and GNU sed extensions, Kevin Wolf, 2019/03/07