Skip to content

Commit fdff04f

Browse files
committed
feat: updated checkAndCreateDirectory
1 parent a15cb45 commit fdff04f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

helper/DockerHelper.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,7 @@ func installAllSupportedPlatforms() error {
526526
}
527527

528528
func checkAndCreateDirectory(localCachePath string) error {
529-
makeDirCmd := "mkdir -p " + localCachePath
530-
pathCreateCommand := exec.Command("/bin/sh", "-c", makeDirCmd)
529+
pathCreateCommand := exec.Command("/bin/sh", "-c", "mkdir", "-pv", localCachePath)
531530
err := util.RunCommand(pathCreateCommand)
532531
if err != nil {
533532
log.Println(err)

0 commit comments

Comments
 (0)