Merge pull request #62 from hakong/patch-2

Cron mode should not exit with non-zero if up to date
This commit is contained in:
Henric Andersson 2016-06-26 23:45:30 -07:00 committed by GitHub
commit 258e565ea3

View file

@ -372,8 +372,9 @@ fi
if [[ $FILENAME == *$INSTALLED_VERSION* ]] && [ "${FORCE}" != "yes" ] && [ ! -z "${INSTALLED_VERSION}" ]; then
if [ "${CRON}" = "no" ]; then
echo "Your OS reports the latest version of Plex ($INSTALLED_VERSION) is already installed. Use -f to force download."
exit 5
fi
exit 5
exit 0
fi
if [ -f "${DOWNLOADDIR}/${FILENAME}" -a "${FORCE}" != "yes" ]; then