[ "$status" -eq 0 ] just bails out and its up to you to figure out why. $output has the stdout/stderr so we could just print that. I think its worth vendoring the libraries and just using those functions. Signed-off-by: Chad Metcalf <chad@docker.com>