fix(wrapper): exit gracefully for user-rejected packages

This commit is contained in:
Sahilb315
2025-05-11 22:49:03 +05:30
parent 99c24904dc
commit dbf8282b29
+4
View File
@@ -62,6 +62,10 @@ func (pmw *PackageManagerWrapper) Wrap() error {
ui.StopProgressWriter()
}
if len(pmw.PackagesToInstall) == 0 {
log.Infof("No packages were installed due to security concerns")
return nil
}
// Execute installation after all scans complete
if err := pmw.executeInstallation(); err != nil {
return err