Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2014-10-24 03:23:35 +0400
committermboelen <michael@cisofy.com>2014-10-24 03:23:35 +0400
commitf465da535112159c6529b4181e4a817a2573793d (patch)
treef1a1f59386249305adf3a3fb5bd12e325a7ea0db
parent6f6d51a11a9264b75517bab9667b893294a587f0 (diff)
Small adjustment to avoid getting error when no files are in APT sources.list.d directory
-rw-r--r--include/tests_ports_packages2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_ports_packages b/include/tests_ports_packages
index 09aa785b..417f0124 100644
--- a/include/tests_ports_packages
+++ b/include/tests_ports_packages
@@ -695,7 +695,7 @@
fi
if [ -d /etc/apt/sources.list.d ]; then
logtext "Searching for security.debian.org/security.ubuntu.com or security repositories in /etc/apt/sources.list.d directory"
- FIND=`egrep "security.debian.org|security.ubuntu.com|-security " /etc/apt/sources.list.d/* | grep -v '#' | sed 's/ /!space!/g'`
+ FIND=`egrep -r "security.debian.org|security.ubuntu.com|-security " /etc/apt/sources.list.d | grep -v '#' | sed 's/ /!space!/g'`
if [ ! "${FIND}" = "" ]; then
FOUND=1
Display --indent 2 --text "- Checking security repository in sources.list.d directory" --result OK --color GREEN