use set -eu
This commit is contained in:
parent
c417a9d4d3
commit
505aae9f60
|
@ -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'`
|
||||
|
|
Loading…
Reference in New Issue
Block a user