2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-04 15:03:41 +01:00

Replace an instance of string-ish [[ $? -gt 0 ]] with arithmetic (( $? != 0 )).

This more accurately reflects that "non-zero exit status indicates
failure"; while > 0 will no doubt work as well, != 0 avoids the question
of whether $? is signed or unsigned in bash and more accurately
represents the documentation ("non-zero", != 0).
This commit is contained in:
Richard Soderberg 2015-09-05 03:27:00 -07:00
parent 871ad92ae2
commit 90ac19cfe8

View File

@ -633,7 +633,7 @@ bench_cipher() {
for i in $(seq 1 $BENCHMARKITER); do
debug Connection $i
(echo "Q" | $sslcommand 2>/dev/null 1>/dev/null)
if [[ $? -gt 0 ]]; then
if (( $? != 0 )); then
break
fi
done