build: Don't hardcode the path of bash

Bash is not always installed in /bin and we should not hardcode the path
of it in source code which is expected to be built on many operating
systems and distributions.

Since most scripts using #!/bin/bash here doesn't have any bashism,
they can be converted to #!/bin/sh instead of using /usr/bin/env trick.
This commit is contained in:
Ting-Wei Lan 2018-12-01 12:04:26 +08:00 committed by Georges Basile Stavracas Neto
parent 365ea2fd56
commit b2e75b5da0
4 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
outputfile=$1
shift

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
inputfile="$1"
outputfile="$2"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if test -z "$G_DEBUG"; then
G_DEBUG=fatal-warnings

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
inputfile="$1"
outputfile="$2"