commit | 11a82d14293cd66f428f535741717ff338c0722b | [log] [tgz] |
---|---|---|
author | Philippe Mathieu-Daudé <philmd@redhat.com> | Thu Mar 07 15:58:38 2019 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri Mar 08 12:26:45 2019 +0100 |
tree | d58877662e23aae2dce03286741add9cafe650ef | |
parent | d68375816eca9e60d7c7edb290b1964d4d83e346 [diff] |
qemu-iotests: 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. Patch created mechanically by running: $ git grep -lE '#! ?/bin/bash' -- tests/qemu-iotests \ | while read f; do \ sed -i 's|^#!.\?/bin/bash$|#!/usr/bin/env bash|' $f; \ done Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>