From 34b177547f9d26acb7afe68fcb5be6464b10a4df Mon Sep 17 00:00:00 2001 From: mboelen Date: Mon, 13 Oct 2014 20:35:14 +0200 Subject: [PATCH] Added better text for discovered directories which have symlink --- include/binaries | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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