summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2017-06-05 09:37:40 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-06-08 21:43:05 +0200
commit9cbe364f578bba25d499a45c46c56ced35153ae3 (patch)
treea9dd34c608713940d4d473e869c95fcec3bee6c9
parentf00d6ec67bd6fed6ff8fd322d60d026ec87d8a6e (diff)
downloadbuildroot-9cbe364f578bba25d499a45c46c56ced35153ae3.tar.gz
buildroot-9cbe364f578bba25d499a45c46c56ced35153ae3.zip
support/scripts: fix shebang with bash
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rwxr-xr-xsupport/scripts/br2-external2
-rwxr-xr-xsupport/scripts/check-bin-arch2
-rwxr-xr-xsupport/scripts/fix-configure-powerpc64.sh2
-rwxr-xr-xsupport/scripts/genimage.sh2
-rwxr-xr-xsupport/scripts/hardlink-or-copy2
-rwxr-xr-xsupport/scripts/test-pkg2
6 files changed, 6 insertions, 6 deletions
diff --git a/support/scripts/br2-external b/support/scripts/br2-external
index 7e816081a1..00cb57d1ed 100755
--- a/support/scripts/br2-external
+++ b/support/scripts/br2-external
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
set -e
# This script must be able to run with bash-3.1, so it can't use
diff --git a/support/scripts/check-bin-arch b/support/scripts/check-bin-arch
index ff974a71bc..b822cdd60d 100755
--- a/support/scripts/check-bin-arch
+++ b/support/scripts/check-bin-arch
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
while getopts p:l:r:a: OPT ; do
case "${OPT}" in
diff --git a/support/scripts/fix-configure-powerpc64.sh b/support/scripts/fix-configure-powerpc64.sh
index ad710422a5..ff2b283ce9 100755
--- a/support/scripts/fix-configure-powerpc64.sh
+++ b/support/scripts/fix-configure-powerpc64.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# This is a script to find, and correct, a problem with old versions of
# configure that affect powerpc64 and powerpc64le.
diff --git a/support/scripts/genimage.sh b/support/scripts/genimage.sh
index 6c8d9e5ad3..625afc108c 100755
--- a/support/scripts/genimage.sh
+++ b/support/scripts/genimage.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
die() {
echo "Error: $@" >&2
diff --git a/support/scripts/hardlink-or-copy b/support/scripts/hardlink-or-copy
index b046bdf059..a052318ffa 100755
--- a/support/scripts/hardlink-or-copy
+++ b/support/scripts/hardlink-or-copy
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Try to hardlink a file into a directory, fallback to copy on failure.
#
diff --git a/support/scripts/test-pkg b/support/scripts/test-pkg
index f08c608727..7633a21e53 100755
--- a/support/scripts/test-pkg
+++ b/support/scripts/test-pkg
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
set -e
TOOLCHAINS_URL='http://autobuild.buildroot.org/toolchains/configs/toolchain-configs.csv'
OpenPOWER on IntegriCloud