commit 729148d
hovercats
·
2024-09-04 19:39:22 +0000 UTC
parent 378286b
ytdl: check for number of arguments instead of $2 being empty
1 files changed,
+1,
-1
M
rc/ytdl
M
rc/ytdl
+1,
-1
1@@ -8,7 +8,7 @@ flag e +
2 DLDIR=$HOME/usr/vid
3 proxy='&local=true'
4
5-if (test -z $1){
6+if (~ $#* 0){
7 printf 'No url found\n'
8 exit 1
9 }