lib/caravan/command.rb in caravan-0.7.0 vs lib/caravan/command.rb in caravan-1.0.0.beta1
- old
+ new
@@ -2,10 +2,10 @@
class Command
class << self
def run(cmd, debug = false)
output = `#{cmd}`
Caravan::Message.debug(cmd) if debug
- return $?.exitstatus, output
+ return $CHILD_STATUS.exitstatus, output
end
end
end
end