fix: add missing packages

This commit is contained in:
Patryk Hegenberg 2024-12-27 19:07:22 +01:00
parent 4063a91bc4
commit 1fa3dea1b9
4 changed files with 50 additions and 49 deletions

View file

@ -110,7 +110,9 @@ func (m specialSoftwareModel) installItemCmd(item string) tea.Cmd {
}
case "rust":
if _, err := exec.LookPath("rustc"); err == nil {
return installedItemMsg(item)
if _, err := exec.LookPath("cargo"); err == nil {
return installedItemMsg(item)
}
}
rustupCommand := "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -q -y"
if err := installPackage(rustupCommand, "", ""); err != nil {