script cleanup: use #!/bin/bash on all scripts that use "echo -e" (/bin/sh is sometimes a non-Bourne/non-POSIX shell, e.g. dash/ash, with no support for "echo -e"); fix whitespace.

pull/4941/head
Daniel Pouzzner 2022-03-09 12:28:22 -06:00
parent 67cc8ed482
commit abfc788389
29 changed files with 138 additions and 140 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
###########################################################
########## update and sign server-revoked-key.pem ################

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#commit-tests.sh

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
#
# Our "pre-push" hook.

View File

@ -213,4 +213,3 @@ run_test
echo "exiting with $exit_code certificate was not revoked"
exit $exit_code
########## end program ##########

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# external.test

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# google.test

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#openssl.test

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# ping.test

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#pkcallbacks.test

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# psk.test
# copyright wolfSSL 2016

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#resume.test

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#sniffer-testsuite.test

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# tls13.test
# Copyright wolfSSL 2016-2021
@ -138,9 +138,9 @@ fi
do_cleanup
echo ""
cat ./wolfssl/options.h | grep -F -e 'NO_CERTS'
grep -F -e 'NO_CERTS' ./wolfssl/options.h
NO_CERTS=$?
cat ./wolfssl/options.h | grep -F -e 'WOLFSSL_NO_CLIENT_AUTH'
grep -F -e 'WOLFSSL_NO_CLIENT_AUTH' ./wolfssl/options.h
NO_CLIENT_AUTH=$?
if [ $NO_CERTS -ne 0 -a $NO_CLIENT_AUTH -ne 0 ]; then
# TLS 1.3 mutual auth required but client doesn't send certificates.
@ -312,4 +312,3 @@ do_cleanup
echo -e "\nALL Tests Passed"
exit 0

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
[ "$(whoami)" != "root" ] && echo "Sorry, you are not root." && exit 1