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