Skip email/pass sanity check if stored cookie exists

This commit is contained in:
Alex Malinovich 2016-04-11 11:18:50 -07:00
commit 732b503dae

View file

@ -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