mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-22 14:23: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:
parent
871ad92ae2
commit
90ac19cfe8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user