Closed
Description
Because rbenv uses shims, this line in the generated bin/dev
script will always return true in an environment in which foreman
has been installed in any gemset at any point, even if it's not in the current gemset:
if ! command -v foreman &> /dev/null
I've found this to be a viable alternative that I believe should work everywhere:
if [ $(gem list --local --no-details --quiet --exact foreman | grep foreman | wc -l) -eq 0 ]
(The use of grep
is because when foreman isn't installed, gem list
will produce an empty line of output.)
Metadata
Metadata
Assignees
Labels
No labels