Fix bug where the queue would grow logarithmically with multiple arguments
This commit is contained in:
parent
92c6e38c70
commit
56fb8bfa50
2
ptgdp
2
ptgdp
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user