Merge pull request #507 from Morganamilo/fix#506

Return when no packages are to be installed.
This commit is contained in:
Anna 2018-06-23 16:21:35 +01:00 committed by GitHub
commit ae24228aed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
cmd.go
View file

@ -556,6 +556,10 @@ func numberMenu(pkgS []string, flags []string) (err error) {
}
}
if len(arguments.targets) == 0 {
return fmt.Errorf("There is nothing to do")
}
if config.SudoLoop {
sudoLoopBackground()
}