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
|
esac
|
||||||
|
|
||||||
# Réinitialisation de l’état
|
# Réinitialisation de l’état
|
||||||
unset o
|
unset o output
|
||||||
declare -A o
|
declare -A o
|
||||||
|
|
||||||
# Récupération de l’état
|
# Récupération de l’état
|
||||||
|
@ -87,7 +87,9 @@ do
|
||||||
[[ "$output" == "OK" ]] && break
|
[[ "$output" == "OK" ]] && break
|
||||||
o[${output%%:*}]="${output##*: }"
|
o[${output%%:*}]="${output##*: }"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
unset output
|
||||||
|
|
||||||
# Récupération des informations du morceau en cours
|
# Récupération des informations du morceau en cours
|
||||||
echo "currentsong" >&$IN || self-reset
|
echo "currentsong" >&$IN || self-reset
|
||||||
while read -t 1 -u $OUT output
|
while read -t 1 -u $OUT output
|
||||||
|
|
Loading…
Reference in a new issue