Browse Source

Merge pull request #507 from Morganamilo/fix#506

Return when no packages are to be installed.
Anna 6 years ago
parent
commit
ae24228aed
1 changed files with 4 additions and 0 deletions
  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()
 	}