Skip to content

Commit

Permalink
Fixed bad string comparison of NUL value
Browse files Browse the repository at this point in the history
Fixed bad string comparison for NUL Update Channel value.
  • Loading branch information
michealespinola committed Sep 6, 2020
1 parent f616dd7 commit 73ec98e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syno.plexupdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ OldUpdates=60
###########################################################
# PRINT OUR GLORIOUS HEADER BECAUSE WE ARE FULL OF OURSELVES
printf "\n"
printf "%s\n" "SYNO.PLEX UPDATER SCRIPT v2.3.2"
printf "%s\n" "SYNO.PLEX UPDATER SCRIPT v2.3.3"
printf "\n"

# CHECK IF ROOT
Expand Down Expand Up @@ -66,7 +66,7 @@ fi
PlexOToken=$(cat "$PlexFolder/Preferences.xml" | grep -oP 'PlexOnlineToken="\K[^"]+')
# SCRAPE PLEX SERVER UPDATE CHANNEL
PlexChannl=$(cat "$PlexFolder/Preferences.xml" | grep -oP 'ButlerUpdateChannel="\K[^"]+')
if [ -z "${PlexChannl+x}" ]; then
if [ -z "$PlexChannl" ]; then
# DEFAULT TO PUBLIC SERVER UPDATE CHANNEL IF NULL (NEVER SET) VALUE
ChannlName=Public
ChannelUrl=$(echo "https://plex.tv/api/downloads/5.json")
Expand Down

0 comments on commit 73ec98e

Please sign in to comment.