From 1a26b16b62f1f205c9a00affccd63650781b4011 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Mon, 19 Aug 2024 18:12:33 -0500 Subject: [PATCH] portability enhancement: use "#!/usr/bin/env bash" on all shell scripts that use bash extensions, and use "#!/bin/sh" on the rest. --- Docker/buildAndPush.sh | 2 +- Docker/run.sh | 2 +- Docker/yocto/buildAndPush.sh | 2 +- IDE/ARDUINO/sketches/wolfssl_server/README.md | 2 +- IDE/Espressif/ESP-IDF/compileAllExamples.sh | 2 +- IDE/Espressif/ESP-IDF/examples/wolfssl_test/testAll.sh | 2 +- IDE/Espressif/ESP-IDF/examples/wolfssl_test/testMonitor.sh | 2 +- IDE/Espressif/ESP-IDF/setup.sh | 2 +- IDE/HEXAGON/build.sh | 2 +- IDE/Renesas/e2studio/Projects/tools/generate_rsa_keypair.sh | 2 +- IDE/Renesas/e2studio/Projects/tools/rsa_pss_sign.sh | 2 +- IDE/apple-universal/build-wolfssl-framework.sh | 2 +- IDE/mynewt/setup.sh | 6 ++++-- RTOS/nuttx/wolfssl/setup-wolfssl.sh | 2 +- async-check.sh | 2 +- certs/crl/gencrls.sh | 2 +- certs/ecc/genecc.sh | 2 +- certs/ed25519/gen-ed25519-certs.sh | 2 +- certs/ed25519/gen-ed25519.sh | 2 +- certs/ed448/gen-ed448-certs.sh | 2 +- certs/gen_revoked.sh | 2 +- certs/p521/gen-p521-certs.sh | 2 +- certs/renewcerts.sh | 2 +- certs/rsapss/renew-rsapss-certs.sh | 2 +- certs/sm2/gen-sm2-certs.sh | 2 +- certs/statickeys/gen-static.sh | 2 +- certs/test-pathlen/assemble-chains.sh | 2 +- certs/test-pathlen/refreshkeys.sh | 2 +- certs/test/gen-badsig.sh | 2 +- commit-tests.sh | 2 +- doc/generate_documentation.sh | 2 +- fips-check.sh | 2 +- fips-hash.sh | 3 +-- pull_to_vagrant.sh | 2 +- scripts/aria-cmake-build-test.sh | 2 +- scripts/benchmark_compare.sh | 2 +- scripts/crl-revoked.test | 2 +- scripts/dtls.test | 2 +- scripts/dtlscid.test | 2 +- scripts/external.test | 2 +- scripts/google.test | 2 +- scripts/makedistsmall.sh | 2 +- scripts/memtest.sh | 4 ++-- scripts/ocsp-stapling-with-ca-as-responder.test | 2 +- scripts/ocsp-stapling.test | 2 +- scripts/ocsp-stapling2.test | 2 +- scripts/openssl.test | 2 +- scripts/openssl_srtp.test | 2 +- scripts/pem.test | 2 +- scripts/ping.test | 2 +- scripts/pkcallbacks.test | 2 +- scripts/psk.test | 2 +- scripts/resume.test | 2 +- scripts/sniffer-gen.sh | 2 +- scripts/sniffer-testsuite.test | 2 +- scripts/stm32l4-v4_0_1_build.sh | 2 +- scripts/tls13.test | 2 +- scripts/trusted_peer.test | 2 +- 58 files changed, 62 insertions(+), 61 deletions(-) diff --git a/Docker/buildAndPush.sh b/Docker/buildAndPush.sh index a8ed88c524..444edaca09 100755 --- a/Docker/buildAndPush.sh +++ b/Docker/buildAndPush.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Assume we're in wolfssl/Docker WOLFSSL_DIR=$(builtin cd ${BASH_SOURCE%/*}/..; pwd) diff --git a/Docker/run.sh b/Docker/run.sh index 3820425bb3..880e1e44f6 100755 --- a/Docker/run.sh +++ b/Docker/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "Running with \"${*}\"..." diff --git a/Docker/yocto/buildAndPush.sh b/Docker/yocto/buildAndPush.sh index 8c749502c6..87558eb769 100755 --- a/Docker/yocto/buildAndPush.sh +++ b/Docker/yocto/buildAndPush.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Assume we're in wolfssl/Docker/yocto WOLFSSL_DIR=$(builtin cd ${BASH_SOURCE%/*}/../..; pwd) diff --git a/IDE/ARDUINO/sketches/wolfssl_server/README.md b/IDE/ARDUINO/sketches/wolfssl_server/README.md index 523eb08729..aee5c66307 100644 --- a/IDE/ARDUINO/sketches/wolfssl_server/README.md +++ b/IDE/ARDUINO/sketches/wolfssl_server/README.md @@ -35,7 +35,7 @@ press the reset button or power cycle the Arduino before making a connection. Here's one possible script to test the server from a command-line client: ```bash -#!/bin/bash +#!/usr/bin/env bash echo "client log " > client_log.txt counter=1 THIS_ERR=0 diff --git a/IDE/Espressif/ESP-IDF/compileAllExamples.sh b/IDE/Espressif/ESP-IDF/compileAllExamples.sh index 536dc295c1..95a85d9068 100755 --- a/IDE/Espressif/ESP-IDF/compileAllExamples.sh +++ b/IDE/Espressif/ESP-IDF/compileAllExamples.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # testing script: compileAllExamples # diff --git a/IDE/Espressif/ESP-IDF/examples/wolfssl_test/testAll.sh b/IDE/Espressif/ESP-IDF/examples/wolfssl_test/testAll.sh index e0a7643bea..0d8de0fd6f 100644 --- a/IDE/Espressif/ESP-IDF/examples/wolfssl_test/testAll.sh +++ b/IDE/Espressif/ESP-IDF/examples/wolfssl_test/testAll.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # testAll.sh [keyword suffix] # diff --git a/IDE/Espressif/ESP-IDF/examples/wolfssl_test/testMonitor.sh b/IDE/Espressif/ESP-IDF/examples/wolfssl_test/testMonitor.sh index f71c0f6cc9..9876995117 100644 --- a/IDE/Espressif/ESP-IDF/examples/wolfssl_test/testMonitor.sh +++ b/IDE/Espressif/ESP-IDF/examples/wolfssl_test/testMonitor.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Syntax: # ./testMonitor.sh diff --git a/IDE/Espressif/ESP-IDF/setup.sh b/IDE/Espressif/ESP-IDF/setup.sh index 8d10a59b72..7a68ae4d99 100755 --- a/IDE/Espressif/ESP-IDF/setup.sh +++ b/IDE/Espressif/ESP-IDF/setup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # check if IDF_PATH is set if [ -z "$IDF_PATH" ]; then diff --git a/IDE/HEXAGON/build.sh b/IDE/HEXAGON/build.sh index 5e09fba45e..29fc8ed0ac 100755 --- a/IDE/HEXAGON/build.sh +++ b/IDE/HEXAGON/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -z $1 ]; then echo "./build " exit 1 diff --git a/IDE/Renesas/e2studio/Projects/tools/generate_rsa_keypair.sh b/IDE/Renesas/e2studio/Projects/tools/generate_rsa_keypair.sh index d221e5428d..ac9def4cc3 100755 --- a/IDE/Renesas/e2studio/Projects/tools/generate_rsa_keypair.sh +++ b/IDE/Renesas/e2studio/Projects/tools/generate_rsa_keypair.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function usage(){ cat << _EOT_ diff --git a/IDE/Renesas/e2studio/Projects/tools/rsa_pss_sign.sh b/IDE/Renesas/e2studio/Projects/tools/rsa_pss_sign.sh index 3c1f30032a..5dde500e84 100755 --- a/IDE/Renesas/e2studio/Projects/tools/rsa_pss_sign.sh +++ b/IDE/Renesas/e2studio/Projects/tools/rsa_pss_sign.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash SIGOPT=rsa_padding_mode:pss SIGOPT2=rsa_pss_saltlen:-1 diff --git a/IDE/apple-universal/build-wolfssl-framework.sh b/IDE/apple-universal/build-wolfssl-framework.sh index 85763e281b..1a09665542 100755 --- a/IDE/apple-universal/build-wolfssl-framework.sh +++ b/IDE/apple-universal/build-wolfssl-framework.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # build-wolfssl-framework.sh # diff --git a/IDE/mynewt/setup.sh b/IDE/mynewt/setup.sh index 7cec0a8253..f7b32e81d3 100755 --- a/IDE/mynewt/setup.sh +++ b/IDE/mynewt/setup.sh @@ -1,8 +1,10 @@ -#!/bin/bash -e +#!/usr/bin/env bash -# this scrypt deploy wolfssl and wolfcrypto source code to mynewt project +# this script deploys wolfssl and wolfcrypto source code to the mynewt project. # run as bash "mynewt project root directory path" +set -e + SCRIPTDIR=`dirname $0` SCRIPTDIR=`cd $SCRIPTDIR && pwd -P` WOLFSSL_MYNEWTDIR=${SCRIPTDIR} diff --git a/RTOS/nuttx/wolfssl/setup-wolfssl.sh b/RTOS/nuttx/wolfssl/setup-wolfssl.sh index 3c1df580d1..9cd6ef4d40 100755 --- a/RTOS/nuttx/wolfssl/setup-wolfssl.sh +++ b/RTOS/nuttx/wolfssl/setup-wolfssl.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -e # exit on any command failure if [ ! -d wolfssl ]; then diff --git a/async-check.sh b/async-check.sh index ccfce052a1..bb24bded2d 100755 --- a/async-check.sh +++ b/async-check.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script creates symbolic links to the required asynchronous # file for using the asynchronous simulator and make check diff --git a/certs/crl/gencrls.sh b/certs/crl/gencrls.sh index 98deb7e45e..9a1c67f16d 100755 --- a/certs/crl/gencrls.sh +++ b/certs/crl/gencrls.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # gencrls, crl config already done, see taoCerts.txt for setup check_result(){ diff --git a/certs/ecc/genecc.sh b/certs/ecc/genecc.sh index d068d0d028..c5c231c092 100755 --- a/certs/ecc/genecc.sh +++ b/certs/ecc/genecc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # run from wolfssl root diff --git a/certs/ed25519/gen-ed25519-certs.sh b/certs/ed25519/gen-ed25519-certs.sh index b945e49b69..1dd1262129 100755 --- a/certs/ed25519/gen-ed25519-certs.sh +++ b/certs/ed25519/gen-ed25519-certs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash check_result(){ if [ $1 -ne 0 ]; then diff --git a/certs/ed25519/gen-ed25519.sh b/certs/ed25519/gen-ed25519.sh index 6858d53b2f..70f41125c1 100755 --- a/certs/ed25519/gen-ed25519.sh +++ b/certs/ed25519/gen-ed25519.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash EXAMPLE=$1 echo "This uses ed25519 certificate generator from wolfssl-examples github" diff --git a/certs/ed448/gen-ed448-certs.sh b/certs/ed448/gen-ed448-certs.sh index af51bd2321..0920ab7b9b 100755 --- a/certs/ed448/gen-ed448-certs.sh +++ b/certs/ed448/gen-ed448-certs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash check_result(){ if [ $1 -ne 0 ]; then diff --git a/certs/gen_revoked.sh b/certs/gen_revoked.sh index dfb649110d..4e5e3fcaf2 100755 --- a/certs/gen_revoked.sh +++ b/certs/gen_revoked.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ########################################################### ########## update and sign server-revoked-key.pem ################ diff --git a/certs/p521/gen-p521-certs.sh b/certs/p521/gen-p521-certs.sh index f13cd6fee0..9ff0ffcd81 100755 --- a/certs/p521/gen-p521-certs.sh +++ b/certs/p521/gen-p521-certs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash check_result(){ if [ $1 -ne 0 ]; then diff --git a/certs/renewcerts.sh b/certs/renewcerts.sh index d2482f5103..c46f3dda98 100755 --- a/certs/renewcerts.sh +++ b/certs/renewcerts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # renewcerts.sh # # renews the following certs: diff --git a/certs/rsapss/renew-rsapss-certs.sh b/certs/rsapss/renew-rsapss-certs.sh index 417e7b9efd..aa5951f15d 100755 --- a/certs/rsapss/renew-rsapss-certs.sh +++ b/certs/rsapss/renew-rsapss-certs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash check_result(){ if [ $1 -ne 0 ]; then diff --git a/certs/sm2/gen-sm2-certs.sh b/certs/sm2/gen-sm2-certs.sh index af8ad9be69..790e91f503 100755 --- a/certs/sm2/gen-sm2-certs.sh +++ b/certs/sm2/gen-sm2-certs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash check_result(){ if [ $1 -ne 0 ]; then diff --git a/certs/statickeys/gen-static.sh b/certs/statickeys/gen-static.sh index 681a77edf5..a3fe1d5f9e 100644 --- a/certs/statickeys/gen-static.sh +++ b/certs/statickeys/gen-static.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # run from wolfssl root diff --git a/certs/test-pathlen/assemble-chains.sh b/certs/test-pathlen/assemble-chains.sh index ff917cecea..6a507d8856 100755 --- a/certs/test-pathlen/assemble-chains.sh +++ b/certs/test-pathlen/assemble-chains.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # assemble-chains.sh # Create certs and assemble all the certificate CA path test cert chains. diff --git a/certs/test-pathlen/refreshkeys.sh b/certs/test-pathlen/refreshkeys.sh index b70b7ecca2..02ef5f0392 100755 --- a/certs/test-pathlen/refreshkeys.sh +++ b/certs/test-pathlen/refreshkeys.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash keyList=( chainA-ICA1-key.pem chainA-entity-key.pem diff --git a/certs/test/gen-badsig.sh b/certs/test/gen-badsig.sh index aafe06f97b..ca0b89d165 100755 --- a/certs/test/gen-badsig.sh +++ b/certs/test/gen-badsig.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash generate() { # read in certificate and alter the last part of the signature diff --git a/commit-tests.sh b/commit-tests.sh index ab5b5010d3..e7ba76f03b 100755 --- a/commit-tests.sh +++ b/commit-tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #commit-tests.sh diff --git a/doc/generate_documentation.sh b/doc/generate_documentation.sh index afd9786f56..7a7bbf9df5 100755 --- a/doc/generate_documentation.sh +++ b/doc/generate_documentation.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # This script depends on g++, cmake, git, and make to be installed POSIXLY_CORRECT=1 diff --git a/fips-check.sh b/fips-check.sh index 4f57d2d040..a134bddabf 100755 --- a/fips-check.sh +++ b/fips-check.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # fips-check.sh # This script checks the current revision of the code against the diff --git a/fips-hash.sh b/fips-hash.sh index 8bb6de4ecf..7ae25eeebd 100755 --- a/fips-hash.sh +++ b/fips-hash.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh if test ! -x ./wolfcrypt/test/testwolfcrypt then @@ -18,4 +18,3 @@ then cp wolfcrypt/src/fips_test.c wolfcrypt/src/fips_test.c.bak sed "s/^\".*\";/\"${NEWHASH}\";/" wolfcrypt/src/fips_test.c.bak >wolfcrypt/src/fips_test.c fi - diff --git a/pull_to_vagrant.sh b/pull_to_vagrant.sh index 15d88d97d8..9cba08d69a 100755 --- a/pull_to_vagrant.sh +++ b/pull_to_vagrant.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh SRC=vagrant DST=wolfssl diff --git a/scripts/aria-cmake-build-test.sh b/scripts/aria-cmake-build-test.sh index 0454fbb381..b501ac6fa3 100644 --- a/scripts/aria-cmake-build-test.sh +++ b/scripts/aria-cmake-build-test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # aria_cmake_build_test.sh # diff --git a/scripts/benchmark_compare.sh b/scripts/benchmark_compare.sh index b4ae1d603f..98c2d5a9b1 100755 --- a/scripts/benchmark_compare.sh +++ b/scripts/benchmark_compare.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is designed to compare the output of wolfcrypt/benchmark test # application. If the file has an extension ".csv", then it will parse the # comma separated format, otherwise it will use the standard output format. The diff --git a/scripts/crl-revoked.test b/scripts/crl-revoked.test index da245d485f..fc193d369c 100755 --- a/scripts/crl-revoked.test +++ b/scripts/crl-revoked.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #crl.test # if we can, isolate the network namespace to eliminate port collisions. diff --git a/scripts/dtls.test b/scripts/dtls.test index 8229d31bdd..a563db5e08 100755 --- a/scripts/dtls.test +++ b/scripts/dtls.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script can be run with several environment variables set dictating its # run. You can set the following to what you like: diff --git a/scripts/dtlscid.test b/scripts/dtlscid.test index f38bf4307e..127f728f5d 100755 --- a/scripts/dtlscid.test +++ b/scripts/dtlscid.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # dtlscid.test # Copyright wolfSSL 2022-2024 diff --git a/scripts/external.test b/scripts/external.test index 671f6f9a36..abef437a05 100755 --- a/scripts/external.test +++ b/scripts/external.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # external.test diff --git a/scripts/google.test b/scripts/google.test index ab640d3590..e2b0c63d45 100755 --- a/scripts/google.test +++ b/scripts/google.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # google.test diff --git a/scripts/makedistsmall.sh b/scripts/makedistsmall.sh index 0b92e1ce86..88b5546339 100755 --- a/scripts/makedistsmall.sh +++ b/scripts/makedistsmall.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #set -v # Script to produce a small source/header only package (with CMake support) diff --git a/scripts/memtest.sh b/scripts/memtest.sh index 34e6b07df7..5cb7c5a93c 100755 --- a/scripts/memtest.sh +++ b/scripts/memtest.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Run this script from the wolfSSL root as `./scripts/memtest.sh`. @@ -14,7 +14,7 @@ make for i in {1..1000} do - echo "Trying $i...\n" + echo -e "Trying ${i}...\n" ./tests/unit.test > ./scripts/memtest.txt 2>&1 diff --git a/scripts/ocsp-stapling-with-ca-as-responder.test b/scripts/ocsp-stapling-with-ca-as-responder.test index 5ae2ef1068..d4137395b7 100755 --- a/scripts/ocsp-stapling-with-ca-as-responder.test +++ b/scripts/ocsp-stapling-with-ca-as-responder.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ocsp-stapling-with-ca-as-responder.test diff --git a/scripts/ocsp-stapling.test b/scripts/ocsp-stapling.test index 04d8ce9ace..90b7332a9a 100755 --- a/scripts/ocsp-stapling.test +++ b/scripts/ocsp-stapling.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ocsp-stapling.test # Test requires HAVE_OCSP and HAVE_CERTIFICATE_STATUS_REQUEST diff --git a/scripts/ocsp-stapling2.test b/scripts/ocsp-stapling2.test index 0b3f5b12f5..f18ee1a7c4 100755 --- a/scripts/ocsp-stapling2.test +++ b/scripts/ocsp-stapling2.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ocsp-stapling2.test # Test requires HAVE_OCSP and HAVE_CERTIFICATE_STATUS_REQUEST_V2 diff --git a/scripts/openssl.test b/scripts/openssl.test index 0be450c135..b557bb69b2 100755 --- a/scripts/openssl.test +++ b/scripts/openssl.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # openssl.test diff --git a/scripts/openssl_srtp.test b/scripts/openssl_srtp.test index 500ea5c147..509db8a6c7 100755 --- a/scripts/openssl_srtp.test +++ b/scripts/openssl_srtp.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Test WolfSSL/OpenSSL srtp interoperability # # TODO: add OpenSSL client with WolfSSL server diff --git a/scripts/pem.test b/scripts/pem.test index 7c32f8b038..65720cd6df 100755 --- a/scripts/pem.test +++ b/scripts/pem.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # pem.test # Copyright wolfSSL 2023-2023 diff --git a/scripts/ping.test b/scripts/ping.test index c823492e33..3b8d5df204 100755 --- a/scripts/ping.test +++ b/scripts/ping.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ping.test diff --git a/scripts/pkcallbacks.test b/scripts/pkcallbacks.test index 7fcb697f08..d4bf4309d4 100755 --- a/scripts/pkcallbacks.test +++ b/scripts/pkcallbacks.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #pkcallbacks.test diff --git a/scripts/psk.test b/scripts/psk.test index baeca0210b..58edace274 100755 --- a/scripts/psk.test +++ b/scripts/psk.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # psk.test # copyright wolfSSL 2016 diff --git a/scripts/resume.test b/scripts/resume.test index 49839b4dab..06f25be003 100755 --- a/scripts/resume.test +++ b/scripts/resume.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #resume.test diff --git a/scripts/sniffer-gen.sh b/scripts/sniffer-gen.sh index eac160979c..4cc1207e59 100755 --- a/scripts/sniffer-gen.sh +++ b/scripts/sniffer-gen.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #set -x # Run this script from the wolfSSL root diff --git a/scripts/sniffer-testsuite.test b/scripts/sniffer-testsuite.test index 0be4587fb2..e827da7547 100755 --- a/scripts/sniffer-testsuite.test +++ b/scripts/sniffer-testsuite.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #sniffer-testsuite.test diff --git a/scripts/stm32l4-v4_0_1_build.sh b/scripts/stm32l4-v4_0_1_build.sh index b4eb3650ee..156ab8885a 100755 --- a/scripts/stm32l4-v4_0_1_build.sh +++ b/scripts/stm32l4-v4_0_1_build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash WOLF_ROOT=$(eval "pwd") echo "WOLF_ROOT set to: \"$WOLF_ROOT\"" cd ../ || exit 5 diff --git a/scripts/tls13.test b/scripts/tls13.test index aa53af901c..085ffc1806 100755 --- a/scripts/tls13.test +++ b/scripts/tls13.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # tls13.test # Copyright wolfSSL 2016-2021 diff --git a/scripts/trusted_peer.test b/scripts/trusted_peer.test index 3936e79de8..cdcca7b25b 100755 --- a/scripts/trusted_peer.test +++ b/scripts/trusted_peer.test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # trusted_peer.test # copyright wolfSSL 2016