lib/travis/tools/system.rb in travis-1.9.2.travis.1254.9 vs lib/travis/tools/system.rb in travis-1.9.2.travis.1279.9

- old
+ new

@@ -74,10 +74,10 @@ end 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) return false unless unix? system "/usr/bin/pgrep -u $(whoami) #{app} >/dev/null"