You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by bo...@apache.org on 2009/10/03 17:30:41 UTC

svn commit: r821337 - /buildr/trunk/lib/buildr/core/util.rb

Author: boisvert
Date: Sat Oct  3 15:30:40 2009
New Revision: 821337

URL: http://svn.apache.org/viewvc?rev=821337&view=rev
Log:
sh() &block expects a boolean as first arg

Modified:
    buildr/trunk/lib/buildr/core/util.rb

Modified: buildr/trunk/lib/buildr/core/util.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/util.rb?rev=821337&r1=821336&r2=821337&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/util.rb (original)
+++ buildr/trunk/lib/buildr/core/util.rb Sat Oct  3 15:30:40 2009
@@ -439,8 +439,7 @@
           __native_system__(cd + cmd.first + ' ' + arg_str.join(' '))
         end
         $? = Buildr::ProcessStatus.new(0, res == 0, res)    # KLUDGE
-        
-        block.call(res, $?)
+        block.call(res == 0, $?)
       end
     end