Use PATH variable as first method to scan directories

This commit is contained in:
Michael Boelen 2018-01-11 12:05:21 +01:00
parent 541996f672
commit b4758e0b23
No known key found for this signature in database
GPG key ID: 26141F77A09D7F04

View file

@ -41,6 +41,10 @@
BINARY_PATHS_FOUND=""; COUNT=0
Display --indent 2 --text "- Checking system binaries..."
LogText "Status: Starting binary scan..."
# Test if our PATH variable provides a set of paths (otherwise we use predefined list in include/consts)
if [ ! -z "${PATH}" ]; then BIN_PATHS=$(echo ${PATH} | tr ':' ' '); fi
for SCANDIR in ${BIN_PATHS}; do
LogText "Test: Checking binaries in directory ${SCANDIR}"
ORGPATH=""