diff options
author | mboelen <michael@cisofy.com> | 2014-10-13 22:35:14 +0400 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2014-10-13 22:35:14 +0400 |
commit | 34b177547f9d26acb7afe68fcb5be6464b10a4df (patch) | |
tree | 4183aa838765b95d7b20b2b5c475fabe4f2ede21 | |
parent | 5ac6812ba5bc36a50eb60e7aa458d99bf32d6371 (diff) |
Added better text for discovered directories which have symlink
-rw-r--r-- | include/binaries | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/binaries b/include/binaries index 0a1ff249..291e2cdd 100644 --- a/include/binaries +++ b/include/binaries @@ -41,6 +41,7 @@ logtext "Status: Starting binary scan..." for SCANDIR in ${BINPATHS}; do logtext "Test: Check if directory exists" + ORGPATH="" if [ -d ${SCANDIR} ]; then SKIPDIR=0 if [ -L ${SCANDIR} ]; then @@ -176,7 +177,8 @@ done else logtext "Result: Directory ${SCANDIR} skipped" - Display --indent 4 --text "- ${SCANDIR}" --result SKIPPED --color YELLOW + if [ ! "${ORGPATH}" = "" ]; then TEXT="${ORGPATH} (links to ${SCANDIR})"; else TEXT="${SCANDIR}"; fi + Display --indent 4 --text "- ${TEXT}" --result SKIPPED --color YELLOW fi else Display --indent 4 --text "- ${SCANDIR}" --result "NOT FOUND" --color WHITE |