From 47b2a7df33d878acf4059f614b74e28557d3ca02 Mon Sep 17 00:00:00 2001 From: mboelen Date: Sun, 19 Oct 2014 12:30:26 +0200 Subject: [PATCH] Redirect errors when searching for readlink binary --- include/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions b/include/functions index b8e817e6..4b54a0d2 100644 --- a/include/functions +++ b/include/functions @@ -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