fix: add missing packages
This commit is contained in:
parent
4063a91bc4
commit
1fa3dea1b9
4 changed files with 50 additions and 49 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue