fix: dont ignore rpm-ostree when bootc is found (#999)

This commit is contained in:
befanyt
2024-12-10 06:00:37 +01:00
committed by GitHub
parent 4df30c2587
commit a0963fe3fc

View File

@@ -230,7 +230,9 @@ fn upgrade_redhat(ctx: &ExecutionContext) -> Result<()> {
let sudo = require_option(ctx.sudo().as_ref(), get_require_sudo_string())?;
return ctx.run_type().execute(sudo).arg(&bootc).arg("upgrade").status_checked();
}
} else if let Some(ostree) = which("rpm-ostree") {
}
if let Some(ostree) = which("rpm-ostree") {
if ctx.config().rpm_ostree() {
let mut command = ctx.run_type().execute(ostree);
command.arg("upgrade");