Merge pull request #2374 from valrus/doctor-respect-rbenv-feature

lang/ruby: add check for +rbenv before complaining
This commit is contained in:
Henrik Lissner 2020-01-20 02:27:38 -05:00 committed by GitHub
commit b2141b6299
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,6 @@
(unless (executable-find "ruby") (unless (executable-find "ruby")
(warn! "Ruby isn't installed.")) (warn! "Ruby isn't installed."))
(when (executable-find "rbenv") (when (and (executable-find "rbenv") (featurep! +rbenv))
(unless (split-string (shell-command-to-string "rbenv versions --bare") "\n" t) (unless (split-string (shell-command-to-string "rbenv versions --bare") "\n" t)
(warn! "No versions of ruby are available via rbenv, did you forget to install one?"))) (warn! "No versions of ruby are available via rbenv, did you forget to install one?")))