Skip to content

Commit

Permalink
add missing apt clean
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed May 12, 2023
1 parent 591880b commit e65bfe4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/apt.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func BuildAptModule(recipe *Recipe, module Module) (string, error) {
packages += pkg + " "
}

return fmt.Sprintf("apt install -y %s", packages), nil
return fmt.Sprintf("apt install -y %s && apt clean", packages), nil
}

if len(module.Source.Paths) > 0 {
Expand Down Expand Up @@ -45,6 +45,8 @@ func BuildAptModule(recipe *Recipe, module Module) (string, error) {

if i != len(module.Source.Paths)-1 {
cmd += "&& "
} else {
cmd += "&& apt clean"
}
}

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

var (
Version = "0.2.8"
Version = "0.2.9"
)

func main() {
Expand Down

0 comments on commit e65bfe4

Please sign in to comment.