Explorar o código

Merge pull request #507 from Morganamilo/fix#506

Return when no packages are to be installed.
Anna %!s(int64=6) %!d(string=hai) anos
pai
achega
ae24228aed
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      cmd.go

+ 4 - 0
cmd.go

@@ -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()
 	}