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
|
||||
while read -r line
|
||||
do
|
||||
arr=(${(s,:,)line})
|
||||
key=${arr[1]}
|
||||
val=${arr[2]}
|
||||
key=${line%%:*}
|
||||
val=${line#*:}
|
||||
|
||||
points[$key]=$val
|
||||
done < $WD_CONFIG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue