diff --git a/scripts/canon-a1100-image b/scripts/canon-a1100-image index 6c08d74..17fd473 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 8530435..76608ec 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 524113b..9847579 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 78b8668..d0ea224 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 b2dd253..0649247 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 5ebe699..454f232 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 ... diff --git a/scripts/socfpga_get_sequencer b/scripts/socfpga_get_sequencer index 36f6749..5405bfa 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 6c748fa..23e3c38 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 7e22ebb..3bb0dd2 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