Skip to content

Commit

Permalink
Merge pull request #1690 from mwieczorek/fix-nomad-run-on-windows
Browse files Browse the repository at this point in the history
Fix 'nomad run' on windows
  • Loading branch information
diptanu committed Sep 5, 2016
2 parents b1342d0 + 3c020b1 commit 79faa8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions command/helpers.go
Expand Up @@ -255,6 +255,10 @@ func (j *JobGetter) StructJob(jpath string) (*structs.Job, error) {
}
defer os.Remove(job.Name())

if err := job.Close(); err != nil {
return nil, err
}

// Get the pwd
pwd, err := os.Getwd()
if err != nil {
Expand Down

0 comments on commit 79faa8c

Please sign in to comment.