guix: Make sure UPDATES-DIR is valid.
[jackhill/guix/guix.git] / scripts / guix.in
index 1315789..4015560 100644 (file)
@@ -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)))))