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