Skip to content

Commit

Permalink
Merge pull request EugenMayer#636 from EugenMayer/unox-brew-only-on-mac
Browse files Browse the repository at this point in the history
brew is mac specific tools
  • Loading branch information
EugenMayer authored Feb 6, 2019
2 parents 251f391 + fb81128 commit 75416e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/docker-sync/dependencies/unox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ def self.available?
cmd = 'brew list unox 2>&1 > /dev/null'
# TODO: Environment.linux? was just a hotfix for something we did not dig deeper into, as we have should
# see https://github.com/EugenMayer/docker-sync/pull/630
@available = Environment.linux? or defined?(Bundler) ? Bundler.clean_system(cmd) : system(cmd)
if Environment.mac?
@available = defined?(Bundler) ? Bundler.clean_system(cmd) : system(cmd)
else
@available = true
end
@available
end

def self.ensure!
Expand Down

0 comments on commit 75416e8

Please sign in to comment.