From afc175551968364acbd7d4aa3fe07a3990cc2c36 Mon Sep 17 00:00:00 2001 From: Julien Vehent Date: Fri, 18 Sep 2015 13:03:38 -0400 Subject: [PATCH] squash with ok/ko --- cipherscan | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cipherscan b/cipherscan index 7dd4e2e..d6e9b25 100755 --- a/cipherscan +++ b/cipherscan @@ -751,8 +751,10 @@ display_results_in_terminal() { done|column -t echo pubkey_eval="KO" - if (( $pubkey > 2047 )); then - pubkey_eval="OK" + if [[ ! -z $pubkey ]]; then + if (( $pubkey > 2047 )); then + pubkey_eval="OK" + fi fi sigalg_eval="OK" if [[ $sigalg =~ md5|sha1 ]]; then