fix: remove match, fix braces
All checks were successful
/ check_lfs (push) Successful in 6s
/ check_lfs (pull_request) Successful in 6s

This commit is contained in:
esy 2025-07-07 00:15:39 +01:00
parent ff6f0a16f5
commit f1ef6d0e7f
No known key found for this signature in database

View file

@ -172,22 +172,16 @@ pub mod update_icon {
let folder = format!("{}/open-governance", &config.home); let folder = format!("{}/open-governance", &config.home);
if let Err(e) = Command::new("git") if let Err(e) = Command::new("git")
match Command::new("git")
// clone the repo, gracefully "fails" // clone the repo, gracefully "fails"
.arg("clone") .arg("clone")
.arg(url) .arg(url)
.arg(&folder) .arg(&folder)
.output() .output()
{ {
Err(e) => { dbg!(e);
dbg!(e);
}
Ok(e) => {
dbg!(e);
} }
if let Err(e) = Command::new("git") if let Err(e) = Command::new("git")
match Command::new("git")
// Update the repo // Update the repo
.arg("pull") .arg("pull")
.arg("origin") .arg("origin")
@ -195,30 +189,20 @@ pub mod update_icon {
.current_dir(&folder) .current_dir(&folder)
.output() .output()
{ {
Err(e) => { dbg!(e);
dbg!(e);
}
Ok(e) => {
dbg!(e);
}
} }
match Command::new("git") if let Err(e) = Command::new("git")
// Install LFS for the repo // Install LFS for the repo
.arg("lfs") .arg("lfs")
.arg("install") .arg("install")
.current_dir(&folder) .current_dir(&folder)
.output() .output()
{ {
Err(e) => { dbg!(e);
dbg!(e);
}
Ok(e) => {
dbg!(e);
}
} }
match Command::new("git") if let Err(e) = Command::new("git")
// clone the repo, gracefully "fails" // clone the repo, gracefully "fails"
.arg("lfs") .arg("lfs")
.arg("pull") .arg("pull")
@ -227,12 +211,7 @@ pub mod update_icon {
.current_dir(&folder) .current_dir(&folder)
.output() .output()
{ {
Err(e) => { dbg!(e);
dbg!(e);
}
Ok(e) => {
dbg!(e);
}
} }
} }