mirror of
https://github.com/CISOfy/lynis.git
synced 2025-04-08 17:15:25 +02:00
Redirect errors when searching for readlink binary
This commit is contained in:
parent
e54677fbd0
commit
47b2a7df33
@ -1183,7 +1183,7 @@
|
||||
# Check for symlink
|
||||
if [ -L ${sFILE} ]; then
|
||||
if [ ${BINARY_SCAN_FINISHED} -eq 0 -a "${READLINKBINARY}" = "" ]; then
|
||||
FIND=`which readlink`
|
||||
FIND=`which readlink 2> /dev/null`
|
||||
if [ ! "${FIND}" = "" ]; then logtext "Setting temporary readlinkbinary variable"; READLINKBINARY="${FIND}"; fi
|
||||
fi
|
||||
if [ ! "${READLINKBINARY}" = "" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user