From b9e7b815bd4af11dd1ed156477d04abce4b2c4d7 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Sun, 3 Mar 2024 08:58:39 +0100 Subject: [PATCH] Fix script --- plex_update.sh | 1 + 1 file changed, 1 insertion(+) 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"