mirror of https://github.com/CISOfy/lynis.git
Redirect errors when searching for readlink binary
This commit is contained in:
parent
e54677fbd0
commit
47b2a7df33
|
@ -1183,7 +1183,7 @@
|
||||||
# Check for symlink
|
# Check for symlink
|
||||||
if [ -L ${sFILE} ]; then
|
if [ -L ${sFILE} ]; then
|
||||||
if [ ${BINARY_SCAN_FINISHED} -eq 0 -a "${READLINKBINARY}" = "" ]; 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
|
if [ ! "${FIND}" = "" ]; then logtext "Setting temporary readlinkbinary variable"; READLINKBINARY="${FIND}"; fi
|
||||||
fi
|
fi
|
||||||
if [ ! "${READLINKBINARY}" = "" ]; then
|
if [ ! "${READLINKBINARY}" = "" ]; then
|
||||||
|
|
Loading…
Reference in New Issue