From ee41671dec5507a0193e54bfe74ec8aed0b6d28d Mon Sep 17 00:00:00 2001 From: dawidd6 Date: Tue, 24 Jan 2017 00:31:53 +0100 Subject: [PATCH] rewrite mpc discovery --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 134e62d2..18175d38 100755 --- a/neofetch +++ b/neofetch @@ -1334,7 +1334,7 @@ get_song() { ;; *) - if type -p mpc >/dev/null; then song="$(mpc current)"; fi + mpc >/dev/null 2>&1 && song="$(mpc current)" ;; esac