fix: loadenv cant handle var value with special char
This commit is contained in:
parent
642f0d29d4
commit
2884cef180
|
@ -88,7 +88,8 @@ if status is-interactive
|
|||
if string match -q '#*' $line
|
||||
continue
|
||||
end
|
||||
eval export $line
|
||||
set pair (string split -m 1 '=' -- $line)
|
||||
eval "set -gx $pair[1] \"$pair[2]\""
|
||||
end < $argv[1]
|
||||
end
|
||||
|
||||
|
@ -97,5 +98,6 @@ if status is-interactive
|
|||
loadenv .env
|
||||
end
|
||||
end
|
||||
readenv
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user