summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/doctor.rb
diff options
context:
space:
mode:
authorColby Swandale <colby@taplaboratories.com>2016-10-24 21:16:24 +1100
committerColby Swandale <colby@taplaboratories.com>2016-10-24 21:16:24 +1100
commit77ee8464b40e090e53955d842c3b33878177f47c (patch)
tree56f6b9383aff767368ca436eb434035714c43fd2 /lib/bundler/cli/doctor.rb
parent061e68ffe4b2b91acd0ee93540968df07f17045e (diff)
downloadbundler-77ee8464b40e090e53955d842c3b33878177f47c.tar.gz
use `system -v` to check for otool and ldd
Diffstat (limited to 'lib/bundler/cli/doctor.rb')
-rw-r--r--lib/bundler/cli/doctor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/cli/doctor.rb b/lib/bundler/cli/doctor.rb
index 728662024b..25b41da89d 100644
--- a/lib/bundler/cli/doctor.rb
+++ b/lib/bundler/cli/doctor.rb
@@ -14,11 +14,11 @@ module Bundler
end
def otool_available?
- system("otool --version 2>#{Bundler::NULL} >#{Bundler::NULL}")
+ system("command -v otool >#{Bundler::NULL}")
end
def ldd_available?
- !system("ldd --help 2>#{Bundler::NULL} >#{Bundler::NULL}").nil?
+ system("command -v ldd >#{Bundler::NULL}")
end
def dylibs_darwin(path)