bugfix Closing #150 (#151) (#152)

Closes #150 please disable distrobox by default (#151)

* Check if distrobox exists before running step
This commit is contained in:
Thomas Schönauer
2022-11-05 10:50:55 +00:00
committed by GitHub
parent 9de111aa0f
commit 3dc245245d

View File

@@ -607,10 +607,12 @@ pub fn run_protonup_update(ctx: &ExecutionContext) -> Result<()> {
} }
pub fn run_distrobox_update(ctx: &ExecutionContext) -> Result<()> { pub fn run_distrobox_update(ctx: &ExecutionContext) -> Result<()> {
let distrobox = require("distrobox")?;
print_separator("Distrobox"); print_separator("Distrobox");
match ( match (
match ( match (
ctx.run_type().execute("distrobox").arg("upgrade"), ctx.run_type().execute(distrobox).arg("upgrade"),
ctx.config().distrobox_containers(), ctx.config().distrobox_containers(),
) { ) {
(r, Some(c)) => { (r, Some(c)) => {