environment: Deal with single-entry search paths.
This is a followup to fcd75bdbfa
.
* guix/scripts/environment.scm (create-environment): Check whether
SEPARATOR is #f.
This commit is contained in:
parent
31f1f593fb
commit
50f4ea18c4
@ -79,7 +79,9 @@ existing enviroment variables with additional search paths."
|
||||
(let ((current (getenv variable)))
|
||||
(setenv variable
|
||||
(if (and current (not pure?))
|
||||
(string-append value separator current)
|
||||
(if separator
|
||||
(string-append value separator current)
|
||||
value)
|
||||
value)))))
|
||||
(evaluate-profile-search-paths profile paths))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user