From f9d199704f9f10cc6bce943ef9e423f9bb4ddcbb Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 26 Sep 2019 18:37:23 -0500 Subject: [PATCH] Fix not piping to null --- ptgdp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptgdp b/ptgdp index d45069b..285883d 100755 --- a/ptgdp +++ b/ptgdp @@ -189,7 +189,7 @@ backend-enqueue() { # Enqueues a song ;; mpd) file=${1##$_mpdroot/} - if ! mpc add "$file"; then + if ! mpc add "$file" > /dev/null 2>&1; then error "Could not add file: \"$file\" ($?)" fi return 0