fix: dont ignore rpm-ostree when bootc is found (#999)
This commit is contained in:
@@ -230,7 +230,9 @@ fn upgrade_redhat(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
let sudo = require_option(ctx.sudo().as_ref(), get_require_sudo_string())?;
|
let sudo = require_option(ctx.sudo().as_ref(), get_require_sudo_string())?;
|
||||||
return ctx.run_type().execute(sudo).arg(&bootc).arg("upgrade").status_checked();
|
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() {
|
if ctx.config().rpm_ostree() {
|
||||||
let mut command = ctx.run_type().execute(ostree);
|
let mut command = ctx.run_type().execute(ostree);
|
||||||
command.arg("upgrade");
|
command.arg("upgrade");
|
||||||
|
|||||||
Reference in New Issue
Block a user