瀏覽代碼

Merge pull request #580 from Morganamilo/fix-print

Don't print nothing to do every time
Anna 6 年之前
父節點
當前提交
4063cf9282
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      install.go

+ 3 - 1
install.go

@@ -125,7 +125,9 @@ func install(parser *arguments) error {
 
 	if len(dp.Aur) == 0 {
 		if !config.CombinedUpgrade {
-			fmt.Println(" there is nothing to do")
+			if parser.existsArg("u", "sysupgrade") {
+				fmt.Println(" there is nothing to do")
+			}
 			return nil
 		}