mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-14 02:26:56 -07:00
Check for existence of downloaddir instead of empty string
This commit is contained in:
parent
d2ccacb3e4
commit
9d5158cbd9
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ fi
|
|||
|
||||
# Remove any ~ or other oddness in the path we're given
|
||||
DOWNLOADDIR="$(cd ${DOWNLOADDIR// /\\ } && pwd)"
|
||||
if [ -z "${DOWNLOADDIR}" ]; then
|
||||
if [ ! -d "${DOWNLOADDIR}" ]; then
|
||||
echo "ERROR: Download directory does not exist or is not a directory" >&2
|
||||
cronexit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue