Skip to content
/ Vib Public
forked from Vanilla-OS/Vib

Commit

Permalink
feat[closes Vanilla-OS#50]: Use apt-get instead of apt
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdaclan committed May 20, 2024
1 parent 596910e commit 860e879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/apt.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"path/filepath"

"github.com/mitchellh/mapstructure"

"github.com/vanilla-os/vib/api"
)

Expand Down Expand Up @@ -54,7 +55,7 @@ func BuildAptModule(moduleInterface interface{}, recipe *api.Recipe) (string, er
packages += pkg + " "
}

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

if len(module.Source.Paths) > 0 {
Expand Down Expand Up @@ -92,4 +93,3 @@ func BuildAptModule(moduleInterface interface{}, recipe *api.Recipe) (string, er

return "", errors.New("no packages or paths specified")
}

0 comments on commit 860e879

Please sign in to comment.