bash logic

This commit is contained in:
Steven Foerster
2021-03-01 21:21:58 -05:00
parent cc8032e6ce
commit 7faf9f3e09
+1 -1
View File
@@ -3,7 +3,7 @@
set -e
# detect if suricata is installed
if [[ ! $(dpkg-query -W -f='${Status}' suricata 2>/dev/null | grep -c "ok installed") ]]; then
if [[ $(dpkg-query -W -f='${Status}' suricata 2>/dev/null | grep -c "ok installed") -eq 1 ]]; then
echo "Installed"
exit 0
fi