mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-14 02:26:56 -07:00
Show more meaningful error for downloaddir
Now tells you what it tried
This commit is contained in:
parent
21e678c790
commit
9708bd9f3e
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue