Skip to content

Commit

Permalink
Resolve feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Racer159 committed Sep 2, 2023
1 parent cc5a52a commit 2dfe04a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/pkg/packager/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ func createPaths(basePath string) (paths types.TempPaths, err error) {
return paths, err
}

message.Debug("Using temporary directory:", basePath)
paths = types.TempPaths{
Base: basePath,

Expand Down
4 changes: 2 additions & 2 deletions src/pkg/utils/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ type TextTemplate struct {

// MakeTempDir creates a temp directory with the zarf- prefix.
func MakeTempDir(basePath string) (string, error) {
if basePath != "" && InvalidPath(basePath) {
if basePath != "" {
if err := CreateDirectory(basePath, 0700); err != nil {
return "", err
}
}
tmp, err := os.MkdirTemp(basePath, tmpPathPrefix)
message.Debugf("Creating temp path: '%s'", tmp)
message.Debug("Using temporary directory:", basePath)
return tmp, err
}

Expand Down

0 comments on commit 2dfe04a

Please sign in to comment.