From 9708bd9f3eeb046f37f09e59916385bcaff222af Mon Sep 17 00:00:00 2001 From: Henric Andersson Date: Thu, 10 Nov 2016 16:31:06 -0800 Subject: [PATCH] Show more meaningful error for downloaddir Now tells you what it tried --- plexupdate.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plexupdate.sh b/plexupdate.sh index 9c205a0..9cc4d79 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -494,9 +494,10 @@ fi # Remove any ~ or other oddness in the path we're given -DOWNLOADDIR="$(eval cd ${DOWNLOADDIR// /\\ } && pwd)" +DOWNLOADDIR_PRE=${DOWNLOADDIR} +DOWNLOADDIR="$(eval cd ${DOWNLOADDIR// /\\ } 2>/dev/null && pwd)" if [ ! -d "${DOWNLOADDIR}" ]; then - errorLog "Download directory does not exist or is not a directory" + errorLog "Download directory does not exist or is not a directory (tried \"${DOWNLOADDIR_PRE}\")" cronexit 1 fi