Skip to content

Commit

Permalink
core: Fix "&&" order in dpks-buildpackage
Browse files Browse the repository at this point in the history
  • Loading branch information
matbme committed Jul 31, 2023
1 parent 4a79317 commit 2b2a21d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions core/dpkg-buildpackage.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@ func BuildDpkgBuildPkgModule(module Module) (string, error) {
module.Name,
)

for i, path := range module.Source.Paths {
cmd += fmt.Sprintf(" dpkg -i ../%s*.deb && apt install -f", path)

if i != len(module.Source.Paths)-1 {
cmd += " && "
}
for _, path := range module.Source.Paths {
cmd += fmt.Sprintf(" && dpkg -i ../%s*.deb && apt install -f", path)
}

cmd += " && apt clean"
Expand Down

0 comments on commit 2b2a21d

Please sign in to comment.