Fix i3blocks/mpd
This commit is contained in:
parent
fcec99b378
commit
221ed89ff9
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