Skip to content

Commit

Permalink
fix: chmod权限问题
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Jun 10, 2024
1 parent d7a79fa commit f7e67c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tools/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func Chmod(path string, permission os.FileMode) error {
return errors.New("chmod is not supported on Windows")
}

cmd := exec.Command("chmod", "-R", permission.String(), path)
cmd := exec.Command("chmod", "-R", fmt.Sprintf("%o", permission), path)
return cmd.Run()
}

Expand Down

0 comments on commit f7e67c3

Please sign in to comment.