From 76db00e42a375641adfdb46c56491bb18dfe1c6b Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Mon, 11 Apr 2016 11:03:53 -0700 Subject: [PATCH 1/3] Fix KEEP option for plexpass users --- plexupdate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexupdate.sh b/plexupdate.sh index 2ed27b0..3de5176 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -263,7 +263,7 @@ if [ "${KEEP}" != "yes" -o ! -f /tmp/kaka ] && [ "${PUBLIC}" == "no" ]; then exit 1 fi echo "OK" -else +elif [ "$PUBLIC" != "no" ]; then # It's a public version, so change URL and make doubly sure that cookies are empty rm 2>/dev/null >/dev/null /tmp/kaka touch /tmp/kaka From 732b503daea89df9b10443ecad625ed7530e7657 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Mon, 11 Apr 2016 11:18:50 -0700 Subject: [PATCH 2/3] Skip email/pass sanity check if stored cookie exists --- plexupdate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexupdate.sh b/plexupdate.sh index 3de5176..cb8654b 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -151,8 +151,8 @@ if [ "${AUTOUPDATE}" == "yes" ]; then fi # Sanity check -if [ "${EMAIL}" == "" -o "${PASS}" == "" ] && [ "${PUBLIC}" == "no" ]; then - echo "Error: Need username & password to download PlexPass version. Otherwise run with -p to download public version." +if [ "${EMAIL}" == "" -o "${PASS}" == "" ] && [ "${PUBLIC}" == "no" ] && [ ! -f /tmp/kaka ]; then + echo "Error: Need username & password or -k optoin to download PlexPass version. Otherwise run with -p to download public version." exit 1 fi From 0ab9cc6ccfe26a1e56e45f2663d067fcf4444938 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Mon, 11 Apr 2016 13:43:47 -0700 Subject: [PATCH 3/3] Spelling is hard --- plexupdate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexupdate.sh b/plexupdate.sh index cb8654b..ef99506 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -152,7 +152,7 @@ fi # Sanity check if [ "${EMAIL}" == "" -o "${PASS}" == "" ] && [ "${PUBLIC}" == "no" ] && [ ! -f /tmp/kaka ]; then - echo "Error: Need username & password or -k optoin to download PlexPass version. Otherwise run with -p to download public version." + echo "Error: Need username & password or -k option to download PlexPass version. Otherwise run with -p to download public version." exit 1 fi