Files
packages/sound/mpc/files/pls-handler.sh
Rosen Penev f91af9d77b mpc: update to 0.33
Small Makefile cleanups.

Ran script through shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 4fba03d6d1)
2020-04-17 14:57:55 -07:00

6 lines
116 B
Bash

#!/bin/sh
echo parameter: file.pls
mpc clear
grep '^File[0-9]*' "$1" | sed -e 's/^File[0-9]*=//' | mpc add
mpc play