fix: remove match, fix braces
This commit is contained in:
parent
ff6f0a16f5
commit
f1ef6d0e7f
1 changed files with 6 additions and 27 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
match Command::new("git")
|
||||
if let Err(e) = Command::new("git")
|
||||
// clone the repo, gracefully "fails"
|
||||
.arg("lfs")
|
||||
.arg("pull")
|
||||
|
@ -227,13 +211,8 @@ pub mod update_icon {
|
|||
.current_dir(&folder)
|
||||
.output()
|
||||
{
|
||||
Err(e) => {
|
||||
dbg!(e);
|
||||
}
|
||||
Ok(e) => {
|
||||
dbg!(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn get_logos(config: &Config, config_toml: &ConfigToml) -> Vec<LogoData> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue