diff --git a/plex_update.sh b/plex_update.sh index 3c21f83..4d45347 100755 --- a/plex_update.sh +++ b/plex_update.sh @@ -14,6 +14,7 @@ section_ids=$(curl -sLX GET "$plex_url/library/sections" -H "X-Plex-Token: $toke if [ -z "$section_ids" ]; then echo "Error: missing sections; the token seems to be broken" + exit 1 fi echo "Plex section IDs: $section_ids"