9 lines
227 B
Bash
Executable file
9 lines
227 B
Bash
Executable file
#!/bin/sh -e
|
|
# Add file to mpd queue
|
|
if test $# -eq 0
|
|
then mpc --format "%album% %track% > %artist% - %title% (%genre% aus %date%)" current
|
|
fi
|
|
for arg
|
|
do fullpath=$(realpath "$arg")
|
|
mpc insert "${fullpath/$MUSIC\//}"
|
|
done
|