Go back to using eval for downloaddir

This commit is contained in:
Alex Malinovich 2016-08-16 14:36:40 -07:00
parent 9d5158cbd9
commit 2ef53f8588

View file

@ -274,7 +274,7 @@ fi
# Remove any ~ or other oddness in the path we're given # Remove any ~ or other oddness in the path we're given
DOWNLOADDIR="$(cd ${DOWNLOADDIR// /\\ } && pwd)" DOWNLOADDIR="$(eval cd ${DOWNLOADDIR// /\\ } && pwd)"
if [ ! -d "${DOWNLOADDIR}" ]; then if [ ! -d "${DOWNLOADDIR}" ]; then
echo "ERROR: Download directory does not exist or is not a directory" >&2 echo "ERROR: Download directory does not exist or is not a directory" >&2
cronexit 1 cronexit 1