aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix-package.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix-package.in b/guix-package.in
index 450d09e081..3b8615cb72 100644
--- a/guix-package.in
+++ b/guix-package.in
@@ -462,7 +462,8 @@ Install, remove, or upgrade PACKAGES in a single transaction.\n"))
;; Create ~/.guix-profile if it doesn't exist yet.
(when (and %user-environment-directory
%current-profile
- (not (file-exists? %user-environment-directory)))
+ (not (false-if-exception
+ (lstat %user-environment-directory))))
(symlink %current-profile %user-environment-directory))
(with-error-handling