Skip to content

Commit 2c2d187

Browse files
committed
added missing $
1 parent 058e0be commit 2c2d187

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

init/30_update_plex.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ INSTALLED=$(dpkg-query -W -f='${Version}' plexmediaserver)
1313

1414
#Get stuff from things.
1515
PLEX_TOKEN=$(cat "/config/Library/Application Support/Plex Media Server/Preferences.xml" | sed -n 's/.*PlexOnlineToken="//p' | sed "s/\".*//")
16-
[ -z PLEX_TOKEN ] && echo "Plex token not avalible, please login " && exit 0
16+
[ -z $PLEX_TOKEN ] && echo "Plex token not avalible, please login " && exit 0
1717
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 )
1818

1919
[ "$PLEXPASS" ] && echo "PLEXPASS is deprecated, please use VERSION"

0 commit comments

Comments
 (0)