Correction de la gestion des valeurs contenant « : »

This commit is contained in:
Breizh 2022-08-20 20:35:13 +02:00
parent 0ffe004dd4
commit 1592e3b1e9

View file

@ -44,7 +44,7 @@ human_time() {
echo "status" >&"$IN"
while read -t 0.1 -u "$OUT" output
do
[[ "$output" =~ : ]] && o[${output%%:*}]="${output##*: }"
[[ "$output" =~ : ]] && o[${output%%:*}]="${output#*: }"
done
# Boucle principale
@ -85,7 +85,7 @@ do
echo "currentsong" >&"$IN" || self-reset
while read -t 0.1 -u "$OUT" output
do
[[ "$output" =~ : ]] && o[${output%%:*}]="${output##*: }"
[[ "$output" =~ : ]] && o[${output%%:*}]="${output#*: }"
done
# Choix des couleurs selon létat