From cbf2a242508cbbf650896e7b861223123d463c95 Mon Sep 17 00:00:00 2001 From: gutmet Date: Sun, 1 Nov 2020 12:24:45 +0100 Subject: [PATCH] youtube-rss: exit on error --- youtube-rss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube-rss b/youtube-rss index aa76540..71b290a 100755 --- a/youtube-rss +++ b/youtube-rss @@ -3,6 +3,8 @@ playlistURL="$1" noItems="$2" +set -e + playlistJSON=`youtube-dl "$playlistURL" --flat-playlist -J --playlist-end "$noItems"` uploader=`echo "$playlistJSON" | jq -r '.uploader'`