Atempt of remove UUOC
This commit is contained in:
parent
2c2d187c25
commit
d7dc822312
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ INSTALLED=$(dpkg-query -W -f='${Version}' plexmediaserver)
|
|||
|
||||
|
||||
#Get stuff from things.
|
||||
PLEX_TOKEN=$(cat "/config/Library/Application Support/Plex Media Server/Preferences.xml" | sed -n 's/.*PlexOnlineToken="//p' | sed "s/\".*//")
|
||||
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
|
||||
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 )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue