lib/imw/utils/extensions.rb in imw-0.2.1 vs lib/imw/utils/extensions.rb in imw-0.2.2

- old
+ new

@@ -55,9 +55,10 @@ # IMW.system prog, flags, *args # # which will work fine since +flags+ will automatically be flattend. def self.system *commands stripped_commands = commands.flatten.map { |command| command.to_s unless command.blank? }.compact + IMW.announce_if_verbose(stripped_commands.join(" ")) Kernel.system(*stripped_commands) raise IMW::SystemCallError.new($?.dup, commands.join(' ')) unless $?.success? end end