From 9c3fcd3b4d9340ebf82338b528fb1f10efca6389 Mon Sep 17 00:00:00 2001 From: Isaac Konikoff Date: Tue, 30 Mar 2021 09:30:19 -0700 Subject: [PATCH] change rpm check to use 'which' and added tshark in dependency check Signed-off-by: Isaac Konikoff --- wifi_diag/do_wifi_diag.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wifi_diag/do_wifi_diag.bash b/wifi_diag/do_wifi_diag.bash index fd79bf6a..f7434c22 100755 --- a/wifi_diag/do_wifi_diag.bash +++ b/wifi_diag/do_wifi_diag.bash @@ -17,10 +17,11 @@ present=( gnuplot wkhtmltopdf + tshark ) killcommand=0 for i in "${present[@]}"; do - present=$(expr length "$(rpm -qa | grep $i)") + present=$(expr length "$(which $i)") if [[ $present -gt 0 ]]; then : else