diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2018-01-11 14:05:21 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2018-01-11 14:05:21 +0300 |
commit | b4758e0b23944be61441ed594366cc943c798118 (patch) | |
tree | 1d989e8407751b8ed94e8cf815dd9bf62c9a0ecb | |
parent | 541996f6729f136797d23a22b7f175cd4438cc56 (diff) |
Use PATH variable as first method to scan directories
-rw-r--r-- | include/binaries | 4 |
1 files changed, 4 insertions, 0 deletions
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="" |