Cron mode should not exit with non-zero if up to date

If plex is up to date, cron mode should exit with 0.
This commit is contained in:
hakong 2016-06-26 23:25:32 +00:00 committed by GitHub
parent b50e8c68f9
commit 02b3ecf726

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