Skip to content

Commit

Permalink
Merge pull request #3 from Powa458/create-base-dir-for-artifact-and-m…
Browse files Browse the repository at this point in the history
…ount-dir

Fixing creation of temp mount directory.
  • Loading branch information
marmold authored Mar 5, 2022
2 parents b4948da + f4fe6a4 commit b842c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post-processor/create/post-processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (pp PostProcessor) PostProcess(context context.Context, ui packer.Ui, baseA
ui.Message(fmt.Sprintf("Base directory for artifact created: '%s'", baseDir))

// Create temp mount directory. The directory will be created with random number suffix.
mountDir, err := os.MkdirTemp(currentDir, "mount_")
mountDir, err := os.MkdirTemp(baseDir, "mount_")
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit b842c61

Please sign in to comment.