diff --git a/lib/travis/tools/system.rb b/lib/travis/tools/system.rb index ba9f3bb1..bcbc6e80 100644 --- a/lib/travis/tools/system.rb +++ b/lib/travis/tools/system.rb @@ -76,7 +76,7 @@ def description(*args) def has?(command) return false unless unix? @has ||= {} - @has.fetch(command) { @has[command] = system "which #{command} 2>/dev/null >/dev/null" } + @has.fetch(command) { @has[command] = system "command -v #{command} 2>/dev/null >/dev/null" } end def running?(app)