diff --git a/script/bootstrap b/script/bootstrap index 832efa41..36c76ada 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -6,6 +6,12 @@ ############################################################################### # Build cpu dependencies. +if [ -z "$BASH_VERSION" ] +then + echo "This script must be run under bash" + exit 1 +fi + # Do not set Exit on Error in scripts that will be sourced # set -o errexit diff --git a/script/build b/script/build index 6dd2f6fc..b6e1568d 100755 --- a/script/build +++ b/script/build @@ -6,6 +6,12 @@ ############################################################################### # Build cpu. +if [ -z "$BASH_VERSION" ] +then + echo "This script must be run under bash" + exit 1 +fi + if [ "$0" = "$BASH_SOURCE" ] then set -o errexit diff --git a/script/clean b/script/clean index bc69b5ad..79f54c65 100755 --- a/script/clean +++ b/script/clean @@ -6,6 +6,12 @@ ############################################################################### # Clean cpu. +if [ -z "$BASH_VERSION" ] +then + echo "This script must be run under bash" + exit 1 +fi + if [ "$0" = "$BASH_SOURCE" ] then set -o errexit diff --git a/script/install b/script/install index 257b61ea..fdf54e00 100755 --- a/script/install +++ b/script/install @@ -6,6 +6,12 @@ ############################################################################### # Install cpu. +if [ -z "$BASH_VERSION" ] +then + echo "This script must be run under bash" + exit 1 +fi + if [ "$0" = "$BASH_SOURCE" ] then set -o errexit diff --git a/script/lint b/script/lint index c9caeb8d..060119d3 100755 --- a/script/lint +++ b/script/lint @@ -6,6 +6,12 @@ ############################################################################### # Check code for issues. +if [ -z "$BASH_VERSION" ] +then + echo "This script must be run under bash" + exit 1 +fi + if [ "$0" = "$BASH_SOURCE" ] then set -o errexit diff --git a/script/stress b/script/stress index 052de609..ad7ebfda 100755 --- a/script/stress +++ b/script/stress @@ -18,6 +18,12 @@ # (if there's failure, test's failed) ############################################################################### +if [ -z "$BASH_VERSION" ] +then + echo "This script must be run under bash" + exit 1 +fi + ## start of boilerplate to switch to project root ------------------------------ script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" proj_dir="$( dirname "${script_dir}" )" diff --git a/script/test b/script/test index 429d2718..954b6a1b 100755 --- a/script/test +++ b/script/test @@ -6,6 +6,12 @@ ############################################################################### # Run basic tests on base. +if [ -z "$BASH_VERSION" ] +then + echo "This script must be run under bash" + exit 1 +fi + if [ "$0" = "$BASH_SOURCE" ] then set -o errexit