Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
wah! finally Googled a bit to find -playlist as an excellent soluti…
Browse files Browse the repository at this point in the history
…on to the problem of play an album of my music.
  • Loading branch information
jzacsh committed Nov 11, 2012
1 parent c9e4a2d commit 1ea541a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions share/mplaydir
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

_n="$(basename "$0")"
[[ -r "$1" && -d "$1" ]] || {
printf 'Error: "%s" is not a readable directory\n' "$1" >&2
printf 'USAGE: %s MUSIC_DIR\n' "$_n" >&2
exit 1
}
mplayer -playlist <(find "$1" -type f | sort)

0 comments on commit 1ea541a

Please sign in to comment.