add find and sort

This commit is contained in:
William Bell
2025-12-28 02:09:53 +00:00
parent a242f4c7df
commit 5ae3f92ebe

6
run.sh
View File

@@ -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
mapfile -t tracks < <(
find "music/pink floyd/dark side of the moon" -type f -iname '*.flac' | sort -V
)
exec bin/player "${tracks[@]}"