diff --git a/plexupdate.sh b/plexupdate.sh index 6ebc79c..882e201 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -264,7 +264,7 @@ fi # Remove any ~ or other oddness in the path we're given -DOWNLOADDIR="$(eval cd ${DOWNLOADDIR// /\\ } ; if [ $? -eq 0 ]; then pwd; fi)" +DOWNLOADDIR="$(cd ${DOWNLOADDIR// /\\ } && pwd)" if [ -z "${DOWNLOADDIR}" ]; then echo "ERROR: Download directory does not exist or is not a directory" >&2 cronexit 1