lib/command.rb in dev_tasks-1.0.10 vs lib/command.rb in dev_tasks-1.0.11
- old
+ new
@@ -39,17 +39,10 @@
self[:end_time] = Time.now
else
self[:output] = `#{self[:input]}`
self[:elapsed] = timer.elapsed_str
self[:end_time] = Time.now
- self[:exit_code]=$?
- #if $? != 0
- # puts self[:output]
- # raise Color.yellow + "`" + Color.green + self[:input] + Color.yellow + "`" + Color.clear +
- # " has exit code " + $?.to_s + " " + out
- #else
- # puts " " + timer.elapsed_str
- #end
+ self[:exit_code]=$?.to_i
end
Dir.chdir(pwd) if pwd != Dir.pwd
Logger.end_command self
end
\ No newline at end of file