From 5ae3f92ebee641838ec34411f59518460982d1dd Mon Sep 17 00:00:00 2001 From: William Bell Date: Sun, 28 Dec 2025 02:09:53 +0000 Subject: [PATCH] add find and sort --- run.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index 9741899..e6ab920 100755 --- a/run.sh +++ b/run.sh @@ -1,3 +1,5 @@ #!/usr/bin/env bash - -exec bin/player music/pink\ floyd/dark\ side\ of\ the\ moon/01\ Speak\ to\ Me.flac music/pink\ floyd/dark\ side\ of\ the\ moon/02\ Breathe\ \(In\ the\ Air\).flac \ No newline at end of file +mapfile -t tracks < <( + find "music/pink floyd/dark side of the moon" -type f -iname '*.flac' | sort -V +) +exec bin/player "${tracks[@]}"