Skip to content

Commit

Permalink
fix: mkdir and create parents
Browse files Browse the repository at this point in the history
  • Loading branch information
femnad committed Jan 25, 2024
1 parent 6fb7c2c commit a687e5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ func EnsureDirExists(dir string) error {

err = os.MkdirAll(dir, 0744)
if os.IsPermission(err) {
return MaybeRunWithSudo(fmt.Sprintf("mkdir %s", dir))
return MaybeRunWithSudo(fmt.Sprintf("mkdir -p %s", dir))
}

return err
}
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

const (
version = "0.31.2"
version = "0.31.3"
)

type args struct {
Expand Down

0 comments on commit a687e5d

Please sign in to comment.