mirror of https://github.com/CISOfy/lynis.git
Added better text for discovered directories which have symlink
This commit is contained in:
parent
5ac6812ba5
commit
34b177547f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue