Corrected key/value split when value contains a :.

This commit is contained in:
Graham Booker 2016-11-10 08:06:28 -06:00
commit 24cb4e5d78

View file

@ -354,9 +354,8 @@ fi
typeset -A points typeset -A points
while read -r line while read -r line
do do
arr=(${(s,:,)line}) key=${line%%:*}
key=${arr[1]} val=${line#*:}
val=${arr[2]}
points[$key]=$val points[$key]=$val
done < $WD_CONFIG done < $WD_CONFIG