debian-cis/lib/utils.sh
2016-04-01 09:32:17 +02:00

19 lines
265 B
Bash

# CIS Debian 7 Hardening Utility functions
#
# Return if a package is installed
# @param $1 package name
#
is_installed()
{
PKG_NAME=$1
if `dpkg -s $PKG_NAME 2> /dev/null | grep -q '^Status: install '` ; then
return 0
fi
return 1
}