mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Corrected key/value split when value contains a :.
This commit is contained in:
parent
0b340bc3a5
commit
24cb4e5d78
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue