Merge pull request #425 from TheSerapher/cronhome-fix-symlink

Fix CRONHOME detection if a symlink is used
This commit is contained in:
Sebastian Grewe 2013-07-11 00:52:15 -07:00
commit b88cdc135c

View File

@ -28,7 +28,11 @@ VERBOSE="0"
################################################################
# Find scripts path
CRONHOME=$( dirname $0 )
if [[ -L $0 ]]; then
CRONHOME=$( dirname $( readlink $0 ) )
else
CRONHOME=$( dirname $0 )
fi
# Change working director to CRONHOME
if ! cd $CRONHOME 2>/dev/null; then