diff --git a/build-all.sh b/build-all.sh index 416586622..7d88b1159 100755 --- a/build-all.sh +++ b/build-all.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/usr/bin/env bash set -euxo pipefail diff --git a/build.sh b/build.sh index 67922f9d4..099194238 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ -#/bin/bash -e +#/usr/bin/env bash -e make clean ./build64.sh ./build32.sh diff --git a/build32-eh.sh b/build32-eh.sh index 040a0b907..daf00a617 100755 --- a/build32-eh.sh +++ b/build32-eh.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -Eeuxo pipefail PIC=OFF EH=ON EXNREF_EH=OFF bash build32-general.sh \ No newline at end of file diff --git a/build32-ehpic.sh b/build32-ehpic.sh index 351fde291..8815a0dc0 100755 --- a/build32-ehpic.sh +++ b/build32-ehpic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -Eeuxo pipefail PIC=ON EH=ON EXNREF_EH=OFF bash build32-general.sh \ No newline at end of file diff --git a/build32-exnref-eh.sh b/build32-exnref-eh.sh index a0fe46e12..0027c18f9 100755 --- a/build32-exnref-eh.sh +++ b/build32-exnref-eh.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -Eeuxo pipefail PIC=OFF EH=ON EXNREF_EH=ON bash build32-general.sh \ No newline at end of file diff --git a/build32-exnref-ehpic.sh b/build32-exnref-ehpic.sh index ed6b50072..4f2b01654 100755 --- a/build32-exnref-ehpic.sh +++ b/build32-exnref-ehpic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -Eeuxo pipefail PIC=ON EH=ON EXNREF_EH=ON bash build32-general.sh \ No newline at end of file diff --git a/build32-general.sh b/build32-general.sh index 6fb362b3d..b9c6ca497 100755 --- a/build32-general.sh +++ b/build32-general.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -Eeuxo pipefail ### Determine build configuration diff --git a/build32.sh b/build32.sh index f651fab1c..9c463ba79 100755 --- a/build32.sh +++ b/build32.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -Eeuxo pipefail PIC=OFF EH=OFF bash build32-general.sh \ No newline at end of file diff --git a/build64.sh b/build64.sh index 2bf8c2f10..ca921504b 100755 --- a/build64.sh +++ b/build64.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -Eeuxo pipefail diff --git a/check-eh-type.sh b/check-eh-type.sh index 3241dd272..9eb12f211 100755 --- a/check-eh-type.sh +++ b/check-eh-type.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # check-eh-type.sh - Detect whether a WebAssembly sysroot uses legacy or new exception handling # diff --git a/clean.sh b/clean.sh index 215814362..a169c170d 100755 --- a/clean.sh +++ b/clean.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/usr/bin/env bash make clean -rm -rf ./build/* \ No newline at end of file +rm -rf ./build/* diff --git a/take-expected.sh b/take-expected.sh index 90c07d463..04ae7b8cf 100755 --- a/take-expected.sh +++ b/take-expected.sh @@ -1,4 +1,4 @@ -#/bin/bash -e +#!/usr/bin/env bash -e cp -f sysroot/share/wasm32-wasi/defined-symbols.txt expected/wasm32-wasi/defined-symbols.txt cp -f sysroot/share/wasm32-wasi/include-all.c expected/wasm32-wasi/include-all.c cp -f sysroot/share/wasm32-wasi/predefined-macros.txt expected/wasm32-wasi/predefined-macros.txt diff --git a/test/wasix/c_pthreads/test.sh b/test/wasix/c_pthreads/test.sh index caf5767a1..d8afe5c57 100644 --- a/test/wasix/c_pthreads/test.sh +++ b/test/wasix/c_pthreads/test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash tmpfile=$(mktemp) wasmer run --verbose --enable-all ./main > $tmpfile diff --git a/test/wasix/cpp_atomic/test.sh b/test/wasix/cpp_atomic/test.sh index f14bd188b..42192225f 100644 --- a/test/wasix/cpp_atomic/test.sh +++ b/test/wasix/cpp_atomic/test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash wasmer run --verbose --enable-all ./main RESULT=$? diff --git a/test/wasix/cpp_executable/test.sh b/test/wasix/cpp_executable/test.sh index e67e4c62d..8559bbfba 100644 --- a/test/wasix/cpp_executable/test.sh +++ b/test/wasix/cpp_executable/test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash wasmer run --verbose --enable-all ./main RESULT=$? diff --git a/test/wasix/cpp_iostream/test.sh b/test/wasix/cpp_iostream/test.sh index 0fcb58b6f..78023f3f5 100644 --- a/test/wasix/cpp_iostream/test.sh +++ b/test/wasix/cpp_iostream/test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash wasmer run --verbose --enable-all ./main RESULT=$? diff --git a/test/wasix/cpp_threads/test.sh b/test/wasix/cpp_threads/test.sh index a5bfdea3b..cba625bc2 100644 --- a/test/wasix/cpp_threads/test.sh +++ b/test/wasix/cpp_threads/test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash tmpfile=$(mktemp) wasmer run --verbose --enable-all ./main > $tmpfile diff --git a/test/wasix/run_tests.sh b/test/wasix/run_tests.sh index 3337a95c7..0ca3bc765 100755 --- a/test/wasix/run_tests.sh +++ b/test/wasix/run_tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash SCRIPT_DIR=$(dirname "$(readlink -f "$0")") BUILD_DIR=$SCRIPT_DIR/../../test-builds TESTS=