code organization and fix for comments

This commit is contained in:
Emma Tebibyte 2023-11-07 23:33:50 -07:00
parent 3e50582c10
commit b83408a453
Signed by: emma
GPG Key ID: 6D661C738815E7DD

33
yt
View File

@ -22,7 +22,7 @@ add() { # adds a video to a playlist file
while test -n "$2"; do while test -n "$2"; do
if test -z "$(sed -n ";$1;p" "$2")" if test -z "$(sed -n ";$1;p" "$2")"
then then
printf "%s: %s: Video already in playlist.\n" "$argv0" "$1" printf "%s: %s: %s: Video already in playlist.\n" "$argv0" "$2" "$1"
exit exit
else else
archive "$1" archive "$1"