change rpm check to use 'which' and added tshark in dependency check

Signed-off-by: Isaac Konikoff <konikofi@candelatech.com>
This commit is contained in:
Isaac Konikoff
2021-03-30 09:30:19 -07:00
parent 40639cee8e
commit 9c3fcd3b4d

View File

@@ -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