mirror of
https://github.com/goreleaser/nfpm.git
synced 2026-06-19 08:05:04 +00:00
improvements
This commit is contained in:
+3
-2
@@ -84,8 +84,9 @@ func (d *Deb) createControl() error {
|
||||
if err := template.Must(t.Parse(controlTemplate)).Execute(&b, d.Info); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := os.Mkdir(filepath.Join(d.Path, "DEBIAN"), 0755); err != nil {
|
||||
control := filepath.Join(d.Path, "DEBIAN", "control")
|
||||
if err := os.Mkdir(filepath.Dir(control), 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
return ioutil.WriteFile(filepath.Join(d.Path, "DEBIAN", "control"), b.Bytes(), 0644)
|
||||
return ioutil.WriteFile(control, b.Bytes(), 0644)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user