From 505aae9f60c8c867f309b97dcfc44aa013d9871f Mon Sep 17 00:00:00 2001 From: gutmet Date: Thu, 24 Jun 2021 13:14:09 +0200 Subject: [PATCH] use set -eu --- youtube-rss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube-rss b/youtube-rss index 9e0f75b..9ed7aec 100755 --- a/youtube-rss +++ b/youtube-rss @@ -1,9 +1,10 @@ #!/bin/bash +set -eu + playlistURL="$1" noItems="$2" -set -e playlistJSON=`youtube-dl "$playlistURL" --flat-playlist -J --playlist-end "$noItems"` uploader=`echo "$playlistJSON" | jq -r '.uploader'`