lib/travis/tools/system.rb in travis-1.10.0.pre.rc1 vs lib/travis/tools/system.rb in travis-1.10.0.pre.rc2

- 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"