From 44b11c2e5bc7b28dff525bd3900c6aca16168e6f Mon Sep 17 00:00:00 2001 From: AlteredCoder <64792091+AlteredCoder@users.noreply.github.com> Date: Tue, 26 Apr 2022 17:37:07 +0200 Subject: [PATCH] Fix hub items installation (#1481) --- pkg/cwhub/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cwhub/download.go b/pkg/cwhub/download.go index 82258c358..11969c118 100644 --- a/pkg/cwhub/download.go +++ b/pkg/cwhub/download.go @@ -124,7 +124,7 @@ func DownloadLatest(hub *csconfig.Hub, target Item, overwrite bool, updateOnly b return target, fmt.Errorf("failed to download item : %s", err) } } else { - if !target.Installed && updateOnly { + if !target.Installed && updateOnly && target.Downloaded { log.Debugf("skipping upgrade of %s : not installed", target.Name) return target, nil }