diff options
author | mboelen <michael@cisofy.com> | 2014-10-24 03:23:35 +0400 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2014-10-24 03:23:35 +0400 |
commit | f465da535112159c6529b4181e4a817a2573793d (patch) | |
tree | f1a1f59386249305adf3a3fb5bd12e325a7ea0db /include/tests_ports_packages | |
parent | 6f6d51a11a9264b75517bab9667b893294a587f0 (diff) |
Small adjustment to avoid getting error when no files are in APT sources.list.d directory
Diffstat (limited to 'include/tests_ports_packages')
-rw-r--r-- | include/tests_ports_packages | 2 |
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 |