diff --git a/assets/create.sh b/assets/create.sh index 1a639649..a4a8aa04 100755 --- a/assets/create.sh +++ b/assets/create.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail ASSET_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" diff --git a/tests/benchmarks/comparison.sh b/tests/benchmarks/comparison.sh old mode 100644 new mode 100755 index 50438cf4..c9eb5237 --- a/tests/benchmarks/comparison.sh +++ b/tests/benchmarks/comparison.sh @@ -1,4 +1,6 @@ -#!/bin/bash +#!/usr/bin/env bash + +cd "$(dirname "${BASH_SOURCE[0]}")" if ! which hyperfine > /dev/null 2>&1; then echo "'hyperfine' does not seem to be installed." diff --git a/tests/benchmarks/run-benchmarks.sh b/tests/benchmarks/run-benchmarks.sh old mode 100644 new mode 100755 index 252c3008..c3a15509 --- a/tests/benchmarks/run-benchmarks.sh +++ b/tests/benchmarks/run-benchmarks.sh @@ -1,4 +1,6 @@ -#!/bin/bash +#!/usr/bin/env bash + +cd "$(dirname "${BASH_SOURCE[0]}")" if ! which hyperfine > /dev/null 2>&1; then echo "'hyperfine' does not seem to be installed." diff --git a/tests/syntax-tests/regression_test.sh b/tests/syntax-tests/regression_test.sh index 55e398c4..25acb256 100755 --- a/tests/syntax-tests/regression_test.sh +++ b/tests/syntax-tests/regression_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eou pipefail diff --git a/tests/syntax-tests/update.sh b/tests/syntax-tests/update.sh index 7ce66588..b4752f05 100755 --- a/tests/syntax-tests/update.sh +++ b/tests/syntax-tests/update.sh @@ -1,4 +1,6 @@ -#!/bin/bash +#!/usr/bin/env bash + +cd "$(dirname "${BASH_SOURCE[0]}")" python="python3" if ! command -v python3 &>/dev/null; then python="python"; fi