Deprecated exit code 5 and corrcted cronwrapper and enhanced README (#148)

* Deprecated exit code 5 and corrcted cronwrapper and enhanced README

- plexupdate.sh will consider no new version as success
- cronwrapper will not print anything unless it truly fails
- README.md updated to provide more details about .plexupdate

* Moved text from README.md to wiki and added notifyonreturn to cron

* Removed overthought part
This commit is contained in:
Henric Andersson 2016-12-11 15:10:23 -08:00 committed by GitHub
commit 440de0cfe5
3 changed files with 11 additions and 11 deletions

View file

@ -24,7 +24,6 @@
# 2 if file already downloaded
# 3 if page layout has changed.
# 4 if download fails
# 5 if version already installed
# 6 if update was deferred due to usage
#
# All other return values not documented.
@ -563,7 +562,7 @@ fi
if [[ $FILENAME == *$INSTALLED_VERSION* ]] && [ "${FORCE}" != "yes" -a "${FORCEALL}" != "yes" ] && [ ! -z "${INSTALLED_VERSION}" ]; then
info "Your OS reports the latest version of Plex ($INSTALLED_VERSION) is already installed. Use -f to force download."
exit 5
exit 0
fi
if [ -f "${DOWNLOADDIR}/${FILENAME}" ]; then