Fix not piping to null

This commit is contained in:
Salt 2019-09-26 18:37:23 -05:00
parent c94d2a2091
commit f9d199704f

2
ptgdp
View File

@ -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