Ensure a parent directory with binaries is scanned - issue #517 on GitHub

This commit is contained in:
Michael Boelen 2018-02-06 10:45:41 +01:00
parent a5cbc12734
commit c53072e31e
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@
fi
# Add a space to make sure we discover a related directory if it was already scanned
FIND=$(echo ${BINARY_PATHS_FOUND} | grep ", ${SCANDIR}")
# The grep -v is to prevent a match /usr/bin in something like /usr/bin/core_perl
FIND=$(echo ${BINARY_PATHS_FOUND} | grep ", ${SCANDIR}" | grep -v ", ${SCANDIR}/")
if [ ! -z "${FIND}" ]; then
SKIPDIR=1; LogText "Result: Skipping this directory as it was already scanned"
fi