mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-09-02 01:58:28 +02:00
Correct exit
using, the exit status should be 0~255
According to the POSIX Programmer's Manual, the exit status specified by the unsigned decimal integer. If n is specified, but its value is not between 0 and 255 inclusively, the exit status is undefined. By cross reference the usage between different scripts in this project, it looks like we could simply remove the `-` before the number.
This commit is contained in:
@ -62,8 +62,8 @@ HN="$1"
|
||||
[ -z "$HN" ] && HN=testssl.sh
|
||||
find_openssl_binary
|
||||
|
||||
ERRFILE=$(mktemp /tmp/curve_tester.R.XXXXXX) || exit -6
|
||||
TMPFILE=$(mktemp /tmp/curve_tester.T.XXXXXX) || exit -6
|
||||
ERRFILE=$(mktemp /tmp/curve_tester.R.XXXXXX) || exit 6
|
||||
TMPFILE=$(mktemp /tmp/curve_tester.T.XXXXXX) || exit 6
|
||||
|
||||
|
||||
for curve in $($OPENSSL ecparam -list_curves | awk -F':' '/:/ { print $1 }'); do
|
||||
|
Reference in New Issue
Block a user