Added better text for discovered directories which have symlink

This commit is contained in:
mboelen 2014-10-13 20:35:14 +02:00
parent 5ac6812ba5
commit 34b177547f
1 changed files with 3 additions and 1 deletions

View File

@ -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