diff options
author | Florian Klink <flokli@flokli.de> | 2019-12-06 13:32:52 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-12-06 15:25:20 +0100 |
commit | 5bd5758b972a716322ae42b9e63f23661c6808b5 (patch) | |
tree | 3aad589988586a8b2c66cf1a7fbd40382b8675f5 /scripts | |
parent | 41c70383948246d0436d3494eb8b952916f2e6c7 (diff) | |
download | barebox-5bd5758b972a716322ae42b9e63f23661c6808b5.tar.gz barebox-5bd5758b972a716322ae42b9e63f23661c6808b5.tar.xz |
scripts: use #!/usr/bin/env bash shebang instead of #!/bin/bash
Some distributions might not have bash in /bin, but in $PATH.
Using #!/usr/bin/env bash solves this, and is consistent with how the
perl and python shebangs look like in the tree.
Signed-off-by: Florian Klink <flokli@flokli.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/canon-a1100-image | 4 | ||||
-rwxr-xr-x | scripts/check_size | 2 | ||||
-rwxr-xr-x | scripts/dfuboot.sh | 2 | ||||
-rwxr-xr-x | scripts/extract_symbol_offset | 2 | ||||
-rwxr-xr-x | scripts/gen-dtb-s | 2 | ||||
-rwxr-xr-x | scripts/genenv | 2 | ||||
-rwxr-xr-x | scripts/socfpga_get_sequencer | 2 | ||||
-rwxr-xr-x | scripts/socfpga_import_preloader | 2 | ||||
-rwxr-xr-x | scripts/socfpga_xml_to_config.sh | 2 |
9 files changed, 11 insertions, 9 deletions
diff --git a/scripts/canon-a1100-image b/scripts/canon-a1100-image index 6c08d7493a..17fd47373e 100755 --- a/scripts/canon-a1100-image +++ b/scripts/canon-a1100-image @@ -1,4 +1,6 @@ -#!/bin/bash -e +#!/usr/bin/env bash + +set -e IFILE=$1 OFILE=$2 diff --git a/scripts/check_size b/scripts/check_size index 8530435d3a..76608eccce 100755 --- a/scripts/check_size +++ b/scripts/check_size @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash symbol="$1" file="$2" diff --git a/scripts/dfuboot.sh b/scripts/dfuboot.sh index 524113b613..9847579ced 100755 --- a/scripts/dfuboot.sh +++ b/scripts/dfuboot.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash DEVICETREE= KERNEL= diff --git a/scripts/extract_symbol_offset b/scripts/extract_symbol_offset index 78b866830e..d0ea22434a 100755 --- a/scripts/extract_symbol_offset +++ b/scripts/extract_symbol_offset @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash symbol="$1" file="$2" diff --git a/scripts/gen-dtb-s b/scripts/gen-dtb-s index b2dd253c27..0649247f93 100755 --- a/scripts/gen-dtb-s +++ b/scripts/gen-dtb-s @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash name=$1 dtb=$2 diff --git a/scripts/genenv b/scripts/genenv index 5ebe699632..454f2327b2 100755 --- a/scripts/genenv +++ b/scripts/genenv @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Generate the default environment file from a list of directories # usage: genenv <basedir> <objdir> <target> <dir>... diff --git a/scripts/socfpga_get_sequencer b/scripts/socfpga_get_sequencer index 36f67498bc..5405bfa6ba 100755 --- a/scripts/socfpga_get_sequencer +++ b/scripts/socfpga_get_sequencer @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ "$#" -lt "2" ] then diff --git a/scripts/socfpga_import_preloader b/scripts/socfpga_import_preloader index 6c748fadb8..23e3c380db 100755 --- a/scripts/socfpga_import_preloader +++ b/scripts/socfpga_import_preloader @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ "$#" -lt "2" ] then diff --git a/scripts/socfpga_xml_to_config.sh b/scripts/socfpga_xml_to_config.sh index 7e22ebb9e8..3bb0dd283b 100755 --- a/scripts/socfpga_xml_to_config.sh +++ b/scripts/socfpga_xml_to_config.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## TODO: ## - read in mpuclk and nocclk, must be calculated by hand at the moment |