Correction de la gestion des valeurs contenant « : »
This commit is contained in:
parent
62b96f7add
commit
0dd9c39183
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ human_time() {
|
||||||
echo "status" >&"$IN"
|
echo "status" >&"$IN"
|
||||||
while read -t 0.1 -u "$OUT" output
|
while read -t 0.1 -u "$OUT" output
|
||||||
do
|
do
|
||||||
[[ "$output" =~ : ]] && o[${output%%:*}]="${output##*: }"
|
[[ "$output" =~ : ]] && o[${output%%:*}]="${output#*: }"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Boucle principale
|
# Boucle principale
|
||||||
|
@ -85,7 +85,7 @@ do
|
||||||
echo "currentsong" >&"$IN" || self-reset
|
echo "currentsong" >&"$IN" || self-reset
|
||||||
while read -t 0.1 -u "$OUT" output
|
while read -t 0.1 -u "$OUT" output
|
||||||
do
|
do
|
||||||
[[ "$output" =~ : ]] && o[${output%%:*}]="${output##*: }"
|
[[ "$output" =~ : ]] && o[${output%%:*}]="${output#*: }"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Choix des couleurs selon l’état
|
# Choix des couleurs selon l’état
|
||||||
|
|
Loading…
Reference in a new issue