mirror of
https://github.com/Jguer/yay
synced 2024-08-31 21:58:39 +00:00
Only remove VCS if the package was removed successfully (#1041)
* Only remove VCS if the package was removed successfully * Use := instead of var * Fix formatting
This commit is contained in:
parent
fdcfeba902
commit
a7619cce2b
8
cmd.go
8
cmd.go
|
@ -282,8 +282,12 @@ func handleSync() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleRemove() error {
|
func handleRemove() error {
|
||||||
removeVCSPackage(cmdArgs.targets)
|
err := show(passToPacman(cmdArgs))
|
||||||
return show(passToPacman(cmdArgs))
|
if err == nil {
|
||||||
|
removeVCSPackage(cmdArgs.targets)
|
||||||
|
}
|
||||||
|
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// NumberMenu presents a CLI for selecting packages to install.
|
// NumberMenu presents a CLI for selecting packages to install.
|
||||||
|
|
Loading…
Reference in a new issue