scripting: Use #!/usr/bin/env bash rather than /bin/bash

On some systems /bin/bash does not exists but is somewhere else and can
be invoked with /usr/bin/env.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
Stefan Berger 2018-09-10 16:31:28 +00:00
parent 7a0e7052be
commit 1fe484ce67
2 changed files with 2 additions and 2 deletions

View File

@ -570,7 +570,7 @@ LDFLAGS_ARCH += $(findstring -m64, $(CFLAGS))
LDFLAGS_ARCH += $(findstring -m32, $(LDFLAGS))
LDFLAGS_ARCH += $(findstring -m64, $(LDFLAGS))
check-local: SHELL?=/bin/bash
check-local: SHELL?="/usr/bin/env bash"
check-local:
@case $(host_os) in \
openbsd*) ADDLIBS="-lc" ;; \

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
input=$(mktemp)
binary=$(mktemp)