Skip to content

Commit 90833fb

Browse files
authored
Fix for foreman existence test in rbenv installs. (#113)
Because rbenv uses shims, the existence of foreman in any gemset will result in this test passing (indicating that the tool is available), whether it's in the current gemset or not. This test, courtesy of @t27duck, ensures that foreman is actually operable in the current context. This commit mirrors the identical commit in cssbundling-rails: rails/cssbundling-rails@dff8845
1 parent 8faaef0 commit 90833fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/install/dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
if ! command -v foreman &> /dev/null
3+
if ! foreman version &> /dev/null
44
then
55
echo "Installing foreman..."
66
gem install foreman

0 commit comments

Comments
 (0)