mirror of
https://github.com/ovh/debian-cis.git
synced 2025-06-22 02:33:42 +02:00
3.1_bootloader_ownership.sh fix
This commit is contained in:
@ -202,11 +202,12 @@ apt_check_updates()
|
||||
# Returns if a package is installed
|
||||
#
|
||||
|
||||
is_installed()
|
||||
is_pkg_installed()
|
||||
{
|
||||
PKG_NAME=$1
|
||||
if `dpkg -s $PKG_NAME 2> /dev/null | grep -q '^Status: install '` ; then
|
||||
if $(dpkg -s $PKG_NAME 2> /dev/null | grep -q '^Status: install ') ; then
|
||||
FNRET=0
|
||||
else
|
||||
FNRET=1
|
||||
fi
|
||||
FNRET=1
|
||||
}
|
||||
|
Reference in New Issue
Block a user