diff --git a/scripts/env/suricata_init.sh b/scripts/env/suricata_init.sh index 4dd3590..f02057c 100755 --- a/scripts/env/suricata_init.sh +++ b/scripts/env/suricata_init.sh @@ -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