Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #371 from mopemope/clean-test
Browse files Browse the repository at this point in the history
Fix: Clean working directory
  • Loading branch information
davecheney committed Sep 16, 2015
2 parents 20070e3 + 1ce894b commit da6b016
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/gb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ func main() {

log.Debugf("args: %v", args)
if err := command.Run(ctx, args); err != nil {
if !noDestroyContext {
ctx.Destroy()
}
log.Fatalf("command %q failed: %v", name, err)
}
}

0 comments on commit da6b016

Please sign in to comment.