From 00fa3d1457ad466d1742fb74baf2760282cb41b0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Thu, 21 Feb 2013 10:27:34 +0100
Subject: [PATCH] guix: Make sure UPDATES-DIR is valid.

* scripts/guix.in: Make sure UPDATES-DIR is not #f.
---
 scripts/guix.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/guix.in b/scripts/guix.in
index 1315789a9c9..4015560cd58 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)))))
 
-- 
GitLab