code organization and fix for comments
This commit is contained in:
parent
3e50582c10
commit
b83408a453
33
yt
33
yt
@ -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"
|
||||||