From 8e0ff70f253ccf27f51616da6b0602c867b5ba9a 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..75ca0c5 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