Skip to content

Commit

Permalink
build: use mkdir -p
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilledheart committed Dec 15, 2023
1 parent e48da71 commit 556783a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ func archiveFiles(output string, prefix string, paths []string) {
glog.Infof("generating tgz file %s", output)
// use below if tar supports gnu style
// cmd := []string{"tar", "caf", output, "--xform", fmt.Sprintf("s,^,%s/,", prefix)}
cmd := []string{"mkdir", prefix}
cmd := []string{"mkdir", "-p", prefix}
cmdRun(cmd, true)
cmd = []string{"cp", "-rf"}
cmd = append(cmd, paths...)
Expand Down

0 comments on commit 556783a

Please sign in to comment.