fix for last track in the list

This commit is contained in:
Luxferre
2026-04-25 19:58:29 +03:00
parent eb1c64731c
commit 94b9d87b7e
+1 -1
View File
@@ -29,7 +29,7 @@ while true; do
[ -d "$src" ] && src="$(find "$src" -type f \( "$@" \) | sort -u)" [ -d "$src" ] && src="$(find "$src" -type f \( "$@" \) | sort -u)"
[ "$src" = 'Quit' ] && break [ "$src" = 'Quit' ] && break
if [ -n "$src" ]; then if [ -n "$src" ]; then
printf '%s' "$src" | while read -r track; do printf '%s\n' "$src" | while read -r track; do
$PLAYER "$track" $PLAYER "$track"
done done
fi fi