This commit is contained in:
Alex Malinovich 2017-02-20 16:02:37 -08:00
commit ba9f7e0816

View file

@ -5,7 +5,7 @@ URL_LOGIN='https://plex.tv/users/sign_in.json'
getPlexToken() { getPlexToken() {
if [ -n "$TOKEN" ]; then if [ -n "$TOKEN" ]; then
echo "Fetching token from config" echo "Fetching token from config"
elif getPlexServerToken elif getPlexServerToken; then
echo "Fetching token from Plex server" echo "Fetching token from Plex server"
elif [ -z "$TOKEN" -a -n "$EMAIL" -a -n "$PASS" ]; then elif [ -z "$TOKEN" -a -n "$EMAIL" -a -n "$PASS" ]; then
#TOFIX #TOFIX