We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7dc822 commit c7e8bf9Copy full SHA for c7e8bf9
1 file changed
init/30_update_plex.sh
@@ -13,7 +13,7 @@ INSTALLED=$(dpkg-query -W -f='${Version}' plexmediaserver)
13
14
#Get stuff from things.
15
PLEX_TOKEN=$( sed -n 's/.*PlexOnlineToken="//p' "/config/Library/Application Support/Plex Media Server/Preferences.xml" | sed "s/\".*//")
16
-[ -z $PLEX_TOKEN ] && echo "Plex token not avalible, please login " && exit 0
+[ -z "$PLEX_TOKEN" ] && echo "Plex token not avalible, please login " && exit 0
17
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 )
18
19
[ "$PLEXPASS" ] && echo "PLEXPASS is deprecated, please use VERSION"
0 commit comments