use set -eu

This commit is contained in:
gutmet 2021-06-24 13:14:09 +02:00
parent c417a9d4d3
commit 505aae9f60

View File

@ -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'`