Fix "read only variable" errors on doom {sync,upgrade}
Relevant to #3844
This commit is contained in:
parent
c55391d4ac
commit
5940d931f4
1 changed files with 4 additions and 1 deletions
5
bin/doom
5
bin/doom
|
@ -112,7 +112,10 @@
|
||||||
"\n ")))
|
"\n ")))
|
||||||
"\n}\n"
|
"\n}\n"
|
||||||
(save-match-data
|
(save-match-data
|
||||||
(cl-loop for env in process-environment
|
(cl-loop for env
|
||||||
|
in (cl-set-difference process-environment
|
||||||
|
doom--initial-process-environment
|
||||||
|
:test #'equal)
|
||||||
if (string-match "^\\([a-zA-Z0-9_]+\\)=\\(.+\\)$" env)
|
if (string-match "^\\([a-zA-Z0-9_]+\\)=\\(.+\\)$" env)
|
||||||
concat (format "%s=%s \\\n"
|
concat (format "%s=%s \\\n"
|
||||||
(match-string 1 env)
|
(match-string 1 env)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue