changed mpc according to @dylanaraps suggestion

This commit is contained in:
Dawid 2016-03-24 19:31:10 +01:00
parent d75ce880d4
commit 7aa3bd8fea
1 changed files with 1 additions and 1 deletions

View File

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