fixed duplicates showing up in pick
This commit is contained in:
parent
4fa1cc7fde
commit
f67691e8d7
2
yt
2
yt
@ -158,7 +158,7 @@ pick() { # Pick a video to play from a playlist of videos
|
|||||||
if test -z "$list"; then
|
if test -z "$list"; then
|
||||||
list="$(grep "$line" "$cachefile")"
|
list="$(grep "$line" "$cachefile")"
|
||||||
else
|
else
|
||||||
list="$(printf '%s\n%s' "$list" "$(grep "$line" "$cachefile")")"
|
list="$(printf '%s\n%s' "$list" "$(grep "$line" "$cachefile" | uniq)")"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user