fix for mpc detection

This commit is contained in:
dawidd6 2016-03-20 12:02:55 +01:00
parent acd725712b
commit d75ce880d4

View file

@ -1192,7 +1192,7 @@ getmemory () {
# Song {{{
getsong () {
if pgrep "mpd" >/dev/null 2>&1; then
if hash "mpc" >/dev/null 2>&1; then
song="$(mpc current 2>/dev/null)"
state=$(mpc | awk -F '\\[|\\]' '/\[/ {printf $2}' 2>/dev/null)