mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
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
1 changed files with 3 additions and 1 deletions
|
@ -79,7 +79,9 @@ (define (create-environment profile paths pure?)
|
|||
(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 a new issue