Skip to content

Commit

Permalink
Merge pull request #381 from wulftone/patch-1
Browse files Browse the repository at this point in the history
Fix RubyVersionMismatch error when using RVM
  • Loading branch information
EugenMayer committed May 11, 2017
2 parents 6102649 + f36dd35 commit b0c3c28
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/docker-sync/preconditions/preconditions_osx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ def has_brew?

def unox_available
if should_run_precondition?
`brew list unox`
if defined? Bundler
Bundler.with_clean_env { `brew list unox` }
else
`brew list unox`
end

unless $?.success?
# unox installed, but not using brew, we do not allow that anymore
if File.exist?('/usr/local/bin/unison-fsmonitor')
Expand Down

0 comments on commit b0c3c28

Please sign in to comment.