Check whether rbenv is enabled before complaining

This commit is contained in:
Ian McCowan 2020-01-15 10:07:49 -08:00
parent 453e20534f
commit 75ad749e10

View file

@ -7,6 +7,6 @@
(unless (executable-find "ruby")
(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)
(warn! "No versions of ruby are available via rbenv, did you forget to install one?")))