Return when no packages are to be installed.

This commit is contained in:
morganamilo 2018-06-23 16:19:25 +01:00
parent da466ba8bf
commit 67817e2a19
No known key found for this signature in database
GPG Key ID: 6FE9E7996B0B082E

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 { if config.SudoLoop {
sudoLoopBackground() sudoLoopBackground()
} }