From 2080649d80cd6a150e26a245efad6fb3a31c3747 Mon Sep 17 00:00:00 2001 From: Henric Andersson Date: Fri, 19 Feb 2016 16:58:52 -0800 Subject: [PATCH] Now detects legacy settings and converts If you used RELEASE= in the settings file, the change to link detection will cause issues, this new version will warn AND change it back to something useful. --- plexupdate.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plexupdate.sh b/plexupdate.sh index 0ad6973..6a448d2 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -69,6 +69,17 @@ if [ -f ~/.plexupdate ]; then source ~/.plexupdate fi +if [ "${RELEASE}" = "64-bit" ]; then + echo "WARNING: RELEASE=64-bit is deprecated, use RELEASE=64 instead" + RELEASE="64" +elif [ "${RELEASE}" = "32-bit" ]; then + echo "WARNING: RELEASE=32-bit is deprecated, use RELEASE=32 instead" + RELEASE="32" +elif [ "${RELEASE}" != "64" -a "${RELEASE}" != "32" ]; then + echo "ERROR: Use of RELEASE=${RELEASE} will no longer work" + exit 255 +fi + # Current pages we need - Do not change unless Plex.tv changes again URL_LOGIN=https://plex.tv/users/sign_in URL_DOWNLOAD=https://plex.tv/downloads?channel=plexpass