mirror of https://github.com/wolfSSL/wolfssl.git
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.
parent
67cc8ed482
commit
abfc788389
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
########## update and sign server-revoked-key.pem ################
|
########## update and sign server-revoked-key.pem ################
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
#commit-tests.sh
|
#commit-tests.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Our "pre-push" hook.
|
# Our "pre-push" hook.
|
||||||
|
|
|
@ -213,4 +213,3 @@ run_test
|
||||||
echo "exiting with $exit_code certificate was not revoked"
|
echo "exiting with $exit_code certificate was not revoked"
|
||||||
exit $exit_code
|
exit $exit_code
|
||||||
########## end program ##########
|
########## end program ##########
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
# external.test
|
# external.test
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
# google.test
|
# google.test
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
#openssl.test
|
#openssl.test
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
# ping.test
|
# ping.test
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
#pkcallbacks.test
|
#pkcallbacks.test
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
# psk.test
|
# psk.test
|
||||||
# copyright wolfSSL 2016
|
# copyright wolfSSL 2016
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
#resume.test
|
#resume.test
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
#sniffer-testsuite.test
|
#sniffer-testsuite.test
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
# tls13.test
|
# tls13.test
|
||||||
# Copyright wolfSSL 2016-2021
|
# Copyright wolfSSL 2016-2021
|
||||||
|
@ -138,9 +138,9 @@ fi
|
||||||
do_cleanup
|
do_cleanup
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
cat ./wolfssl/options.h | grep -F -e 'NO_CERTS'
|
grep -F -e 'NO_CERTS' ./wolfssl/options.h
|
||||||
NO_CERTS=$?
|
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=$?
|
NO_CLIENT_AUTH=$?
|
||||||
if [ $NO_CERTS -ne 0 -a $NO_CLIENT_AUTH -ne 0 ]; then
|
if [ $NO_CERTS -ne 0 -a $NO_CLIENT_AUTH -ne 0 ]; then
|
||||||
# TLS 1.3 mutual auth required but client doesn't send certificates.
|
# TLS 1.3 mutual auth required but client doesn't send certificates.
|
||||||
|
@ -312,4 +312,3 @@ do_cleanup
|
||||||
echo -e "\nALL Tests Passed"
|
echo -e "\nALL Tests Passed"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
[ "$(whoami)" != "root" ] && echo "Sorry, you are not root." && exit 1
|
[ "$(whoami)" != "root" ] && echo "Sorry, you are not root." && exit 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue