summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-02-21 10:27:34 +0100
committerLudovic Courtès <ludo@gnu.org>2013-02-21 10:27:34 +0100
commit525ca3e912507d45e1df29e7ab88b090f8d19dd4 (patch)
tree5779060c74a435fce6151039674e36887b0304fe /scripts
parentf651b477b701d086402c18665eca68b26c3bec6b (diff)
downloadpatches-525ca3e912507d45e1df29e7ab88b090f8d19dd4.tar
patches-525ca3e912507d45e1df29e7ab88b090f8d19dd4.tar.gz
guix: Make sure UPDATES-DIR is valid.
* scripts/guix.in: Make sure UPDATES-DIR is not #f.
Diffstat (limited to 'scripts')
-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)))))