diff options
author | Colby Swandale <colby@taplaboratories.com> | 2016-10-25 07:23:39 +1100 |
---|---|---|
committer | Colby Swandale <colby@taplaboratories.com> | 2016-10-25 07:23:39 +1100 |
commit | 1c96dca35286d38a3a7d0cbedc1a7eb15487890f (patch) | |
tree | 415dd76375cd061d9f7e7923a96c54364d27782f | |
parent | 77ee8464b40e090e53955d842c3b33878177f47c (diff) | |
download | bundler-1c96dca35286d38a3a7d0cbedc1a7eb15487890f.tar.gz |
use `Bunder.which` instead of `system` for otool and ldd detection
-rw-r--r-- | lib/bundler/cli/doctor.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/cli/doctor.rb b/lib/bundler/cli/doctor.rb index 25b41da89d..ae27983240 100644 --- a/lib/bundler/cli/doctor.rb +++ b/lib/bundler/cli/doctor.rb @@ -14,11 +14,11 @@ module Bundler end def otool_available? - system("command -v otool >#{Bundler::NULL}") + Bundler.which("otool") end def ldd_available? - system("command -v ldd >#{Bundler::NULL}") + Bundler.which("ldd") end def dylibs_darwin(path) |