Fix hub items installation (#1481)

This commit is contained in:
AlteredCoder 2022-04-26 17:37:07 +02:00 committed by GitHub
parent 1bd8cc79c8
commit 44b11c2e5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}