From 1b6d80f1223bb2aeb073cb89658ee3e7808322fa Mon Sep 17 00:00:00 2001 From: morganamilo Date: Sat, 12 May 2018 00:24:47 +0100 Subject: [PATCH] Fix --ignore flag while skipping updates ammended Ammend to 58d53b1 Thought this was already included in the commit. --- install.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/install.go b/install.go index 657e04d..e522505 100644 --- a/install.go +++ b/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 {