Fix i3blocks/mpd
This commit is contained in:
parent
4802bb7b4d
commit
9a5a5d4f81
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue