fix(cli): env setter for profile loader

Amend: 48e3603dfe
This commit is contained in:
Henrik Lissner 2022-07-28 18:11:04 +02:00
parent 743b740e79
commit 12b52909e3
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -51,8 +51,8 @@
(condition-case e
(dolist (var (or (cdr (assq (intern profile) (read (current-buffer))))
(user-error "No %S profile found" profile)))
(if (eq var 'env)
(dolist (env var) (setenv (car env) (cdr env)))
(if (eq (car var) 'env)
(dolist (env (cdr var)) (setenv (car env) (cdr env)))
(set (car var) (cdr var))))
(error (error "Failed to parse profiles.el: %s" (error-message-string e)))))))