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);
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue