Browse Source

Fix hub items installation (#1481)

AlteredCoder 3 years ago
parent
commit
44b11c2e5b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/cwhub/download.go

+ 1 - 1
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)
 			return target, fmt.Errorf("failed to download item : %s", err)
 		}
 		}
 	} else {
 	} else {
-		if !target.Installed && updateOnly {
+		if !target.Installed && updateOnly && target.Downloaded {
 			log.Debugf("skipping upgrade of %s : not installed", target.Name)
 			log.Debugf("skipping upgrade of %s : not installed", target.Name)
 			return target, nil
 			return target, nil
 		}
 		}