From b4758e0b23944be61441ed594366cc943c798118 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Thu, 11 Jan 2018 12:05:21 +0100 Subject: [PATCH] Use PATH variable as first method to scan directories --- include/binaries | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/binaries b/include/binaries index b48e63af..ee2818e5 100644 --- a/include/binaries +++ b/include/binaries @@ -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=""