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:
Ludovic Courtès 2017-04-05 22:50:21 +02:00
parent 31f1f593fb
commit 50f4ea18c4
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 3 additions and 1 deletions

View File

@ -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))