summaryrefslogtreecommitdiff
path: root/guix/scripts
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-12-10 12:27:58 +0100
committerLudovic Courtès <ludo@gnu.org>2021-12-10 15:32:44 +0100
commit16e9e538386bf30da690502c65b8053ff266e8cb (patch)
tree0e160a33caea955be0e1a091b41c9ede3bd143f0 /guix/scripts
parent71977101218d1fd5d7f5016cbbcb8710be057d49 (diff)
environment: Suggestion code gracefully handles empty "/bin" directories.
* guix/scripts/environment.scm (suggest-command-name): Handle the case where 'scandir' returns #f.
Diffstat (limited to 'guix/scripts')
-rw-r--r--guix/scripts/environment.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index 821f20e2f2..510cee727f 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -567,7 +567,7 @@ command name."
(_ #t)))
(match (scandir (string-append profile "/bin") not-dot?)
- (() #f)
+ ((or #f ()) #f)
(available
(match command
((executable _ ...)