Wrong function

This commit is contained in:
Henric Andersson 2016-11-16 22:22:21 -08:00
parent c122a14261
commit 1b98ed62f1

View file

@ -383,7 +383,7 @@ done
# valid will NOT be saved. # valid will NOT be saved.
if [ "${SAVECONFIG}" = "yes" ]; then if [ "${SAVECONFIG}" = "yes" ]; then
if [ ! -d "$(eval cd ${DOWNLOADDIR// /\\ } 2>/dev/null && pwd)" ]; then if [ ! -d "$(eval cd ${DOWNLOADDIR// /\\ } 2>/dev/null && pwd)" ]; then
error "Download directory does not exist or is not a directory (tried \"${DOWNLOADDIR}\")" errorLog "Download directory does not exist or is not a directory (tried \"${DOWNLOADDIR}\")"
exit 1 exit 1
fi fi
echo "# Config file for plexupdate" >${CONFIGFILE:="${HOME}/.plexupdate"} echo "# Config file for plexupdate" >${CONFIGFILE:="${HOME}/.plexupdate"}