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:
Peter Dave Hello
2021-06-15 10:04:23 +08:00
parent 17b172229d
commit ce634f7deb
3 changed files with 4 additions and 4 deletions

View File

@ -96,7 +96,7 @@ get_mapping_file() {
if [[ ! -r "$CIPHERS_BY_STRENGTH_FILE" ]] ; then
outln "\nATTENTION: No cipher mapping file found!"
exit -2
exit 2
fi
while read TLS_CIPHER_HEXCODE[TLS_NR_CIPHERS] n TLS_CIPHER_OSSL_NAME[TLS_NR_CIPHERS] TLS_CIPHER_RFC_NAME[TLS_NR_CIPHERS] TLS_CIPHER_SSLVERS[TLS_NR_CIPHERS] TLS_CIPHER_KX[TLS_NR_CIPHERS] TLS_CIPHER_AUTH[TLS_NR_CIPHERS] TLS_CIPHER_ENC[TLS_NR_CIPHERS] mac TLS_CIPHER_EXPORT[TLS_NR_CIPHERS]; do