mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-24 11:39:46 -05:00
environment: Suggestion code gracefully handles empty "/bin" directories.
* guix/scripts/environment.scm (suggest-command-name): Handle the case where 'scandir' returns #f.
This commit is contained in:
parent
7197710121
commit
16e9e53838
1 changed files with 1 additions and 1 deletions
|
@ -567,7 +567,7 @@ (define not-dot?
|
|||
(_ #t)))
|
||||
|
||||
(match (scandir (string-append profile "/bin") not-dot?)
|
||||
(() #f)
|
||||
((or #f ()) #f)
|
||||
(available
|
||||
(match command
|
||||
((executable _ ...)
|
||||
|
|
Loading…
Reference in a new issue