Commits

doob committed 1759c39

Fixed error with the return code of an external executed application

Comments (0)

Files changed (1)

 	def execute (cmd, print_result = false)
 		verbose cmd
 		result = `#{cmd}`
-		raise result if $?.to_i != 0
+		raise result if $?.to_i / 256 != 0
 		
 		puts result if print_result && result != ""