Skip to content

Commit

Permalink
fix dnf
Browse files Browse the repository at this point in the history
Signed-off-by: Sertac Ozercan <[email protected]>
  • Loading branch information
sozercan committed Nov 12, 2024
1 parent dd9e4c4 commit 60d2331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pkgmgr/rpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ func (rm *rpmManager) installUpdates(ctx context.Context, updates unversioned.Up
if dnfTooling == "" {
dnfTooling = rm.rpmTools["dnf"]
}
checkUpdateTemplate := `sh -c "$(%[1]s -q check-update | wc -l); if [ $? -ne 0 ]; then echo >> /updates.txt; fi"`
checkUpdateTemplate := `sh -c 'if [ "$(%[1]s -q check-update | wc -l)" -ne 0 ]; then echo >> /updates.txt; fi'`
if !rm.checkForUpgrades(ctx, dnfTooling, checkUpdateTemplate) {
return nil, nil, fmt.Errorf("no patchable packages found")
}
Expand Down

0 comments on commit 60d2331

Please sign in to comment.