소스 검색

Fix --ignore flag while skipping updates ammended

Ammend to 58d53b1
Thought this was already included in the commit.
morganamilo 7 년 전
부모
커밋
1b6d80f122
1개의 변경된 파일7개의 추가작업 그리고 4개의 파일을 삭제
  1. 7 4
      install.go

+ 7 - 4
install.go

@@ -115,12 +115,15 @@ func install(parser *arguments) error {
 		}
 
 		value, _, exists := cmdArgs.getArg("ignore")
-		ignoreStr := strings.Join(ignore.toSlice(), ",")
-		if exists {
-			ignoreStr += "," + value
+
+		if len(ignore) > 0 {
+			ignoreStr := strings.Join(ignore.toSlice(), ",")
+			if exists {
+				ignoreStr += "," + value
+			}
+			arguments.options["ignore"] = ignoreStr
 		}
 
-		arguments.options["ignore"] = ignoreStr
 		fmt.Println()
 
 		for pkg := range aurUp {