mirror of
https://github.com/linuxserver/docker-plex.git
synced 2026-02-04 17:49:40 +08:00
Fix For SC2086.
This makes code mergable
This commit is contained in:
parent
d7dc822312
commit
c7e8bf9495
@ -13,7 +13,7 @@ INSTALLED=$(dpkg-query -W -f='${Version}' plexmediaserver)
|
||||
|
||||
#Get stuff from things.
|
||||
PLEX_TOKEN=$( sed -n 's/.*PlexOnlineToken="//p' "/config/Library/Application Support/Plex Media Server/Preferences.xml" | sed "s/\".*//")
|
||||
[ -z $PLEX_TOKEN ] && echo "Plex token not avalible, please login " && exit 0
|
||||
[ -z "$PLEX_TOKEN" ] && echo "Plex token not avalible, please login " && exit 0
|
||||
PLEX_LATEST=$(curl -s "https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu&X-Plex-Token=$PLEX_TOKEN"| cut -d "/" -f 5 )
|
||||
|
||||
[ "$PLEXPASS" ] && echo "PLEXPASS is deprecated, please use VERSION"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user