From 7086ce87e065af022779fbc2bc9f5860725b17cf Mon Sep 17 00:00:00 2001 From: Frank Breedijk Date: Sun, 3 Jul 2016 19:29:40 +0200 Subject: [PATCH] FOrgot about @drwetter's allergy for backtics and wc -l --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 1fe9048..8a4297a 100755 --- a/testssl.sh +++ b/testssl.sh @@ -4002,7 +4002,7 @@ run_client_simulation() { for name in "${short[@]}"; do # Make sure we run client simulations for those clients that support it if $do_all_simulations || ${current[i]} ; then - if $do_all_simulations || [[ `echo "${service[i]}" | grep "$client_service" | wc -l` -eq 1 || "${service[i]}" == "ANY" ]]; then + if $do_all_simulations || [[ $(count_lines "$(echo \"${service[i]}\" | grep \"$client_service\"") -eq 1 || "${service[i]}" == "ANY" ]]; then #FIXME: printf formatting would look better, especially if we want a wide option here out " ${names[i]} " if $using_sockets && [[ -n "${handshakebytes[i]}" ]]; then