From 461791dddc5548c69ad27e66cc1cebe9d8a81426 Mon Sep 17 00:00:00 2001 From: Eric Warnke Date: Thu, 27 Oct 2016 16:43:55 -0400 Subject: [PATCH] It's not necessary to check rpm, install will return 0 if the package is installed and up to date --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 620ac17f..29ff0159 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -118,7 +118,7 @@ elif [ -x "$(command -v rpm)" ]; then LIGHTTPD_CFG="lighttpd.conf.fedora" DNSMASQ_USER="nobody" package_check_install() { - rpm -qa | grep ^"${1}"- > /dev/null || ${PKG_INSTALL} "${1}" + ${PKG_INSTALL} "${1}" } else echo "OS distribution not supported"