fixed a couple warnings in the install script
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
use fs_extra::dir::{CopyOptions, copy, create};
|
use fs_extra::dir::{CopyOptions, copy};
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use std::fs::{File, create_dir_all, read_dir, remove_dir_all};
|
use std::fs::{File, create_dir_all, read_dir, remove_dir_all};
|
||||||
@@ -74,7 +74,7 @@ pub fn install() -> Result<(), Box<dyn Error>> {
|
|||||||
println!("downloading default notes and modules...");
|
println!("downloading default notes and modules...");
|
||||||
create_dir_all("./temp")?;
|
create_dir_all("./temp")?;
|
||||||
env::set_current_dir("./temp")?;
|
env::set_current_dir("./temp")?;
|
||||||
let (git_clone_status) = Command::new("git")
|
let git_clone_status = Command::new("git")
|
||||||
.arg("clone")
|
.arg("clone")
|
||||||
.arg("https://git.pyro.monster/pyro/tetanus.git")
|
.arg("https://git.pyro.monster/pyro/tetanus.git")
|
||||||
.status()?
|
.status()?
|
||||||
|
|||||||
Reference in New Issue
Block a user