File: mpd-pls-handler.sh

package info (click to toggle)
mpc 0.35-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 524 kB
  • sloc: ansic: 4,328; sh: 173; python: 107; makefile: 9
file content (4 lines) | stat: -rwxr-xr-x 175 bytes parent folder | download | duplicates (8)
1
2
3
4
#!/bin/sh
test $# -ne 1 && echo "$0 takes 1 argument" && exit 1
test ! -e "$1" && echo "Argument ($1) needs to be a file" && exit 2
sed -ne 's/^File[0-9]*=//p' "$1" | mpc add