Fix bug where the queue would grow logarithmically with multiple arguments

This commit is contained in:
Salt 2020-02-11 01:12:18 -06:00
parent 92c6e38c70
commit 56fb8bfa50

2
ptgdp
View File

@ -406,6 +406,8 @@ main() {
# Files specified on the command line have priority # Files specified on the command line have priority
for arg in "${_args[@]}"; do for arg in "${_args[@]}"; do
playlist "$arg" playlist "$arg"
unset _queue
declare -a _queue
done done
elif ! [ -t 0 ]; then elif ! [ -t 0 ]; then
# If there are none of those, read from STDIN # If there are none of those, read from STDIN