From 221ed89ff97f5acdeda213448d5ae171dcc77078 Mon Sep 17 00:00:00 2001 From: Breizh Date: Sat, 13 Aug 2022 00:48:35 +0200 Subject: [PATCH] Fix i3blocks/mpd --- .i3blocks/mpd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.i3blocks/mpd b/.i3blocks/mpd index 296e71d..31ba453 100755 --- a/.i3blocks/mpd +++ b/.i3blocks/mpd @@ -77,7 +77,7 @@ do esac # Réinitialisation de l’état - unset o + unset o output declare -A o # Récupération de l’état @@ -87,7 +87,9 @@ do [[ "$output" == "OK" ]] && break o[${output%%:*}]="${output##*: }" done - + + unset output + # Récupération des informations du morceau en cours echo "currentsong" >&$IN || self-reset while read -t 1 -u $OUT output