소스 검색

Merge pull request #507 from Morganamilo/fix#506

Return when no packages are to be installed.
Anna 6 년 전
부모
커밋
ae24228aed
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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()
 	}