From 1c96dca35286d38a3a7d0cbedc1a7eb15487890f Mon Sep 17 00:00:00 2001 From: Colby Swandale Date: Tue, 25 Oct 2016 07:23:39 +1100 Subject: use `Bunder.which` instead of `system` for otool and ldd detection --- lib/bundler/cli/doctor.rb | 4 ++-- 1 file 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) -- cgit v1.2.1