debian-cis/lib/utils.sh

19 lines
265 B
Bash
Raw Normal View History

# 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
}