aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/guix.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/guix.in b/scripts/guix.in
index 1315789a9c..4015560cd5 100644
--- a/scripts/guix.in
+++ b/scripts/guix.in
@@ -51,7 +51,7 @@
(and=> (getenv "HOME")
(cut string-append <> "/.config")))
(cut string-append <> "/guix/latest"))))
- (when (file-exists? updates-dir)
+ (when (and updates-dir (file-exists? updates-dir))
(push! updates-dir %load-path)
(push! updates-dir %load-compiled-path)))))