Set temporary readlink function if binary scan is not finished yet

This commit is contained in:
mboelen 2014-10-13 19:57:15 +02:00
parent a68b226d3a
commit 8454ac7baf
1 changed files with 4 additions and 0 deletions

View File

@ -1182,6 +1182,10 @@
FOUNDPATH=0
# Check for symlink
if [ -L ${sFILE} ]; then
if [ ${BINARY_SCAN_FINISHED} -eq 0 -a "${READLINKBINARY}" = "" ]; then
FIND=`which readlink`
if [ ! "${FIND}" = "" ]; then logtext "Setting temporary readlinkbinary variable"; READLINKBINARY="${FIND}"; fi
fi
if [ ! "${READLINKBINARY}" = "" ]; then
tFILE=`${READLINKBINARY} -f ${sFILE}`
# Check if we can find the file now