Fixed some problem

This commit is contained in:
YuKun Liu committed 2022-05-11 00:27:37 +08:00
1 parent ecb846dd24
commit bf49d526d7
2 files changed
+15 -4

No files matched your search

+3 -3
View File
@@ -207,7 +207,7 @@ impl Tool {
} else {
command.to_string()
}
},
}
};
if !bin_path.join(&command_file).is_file() {
@@ -232,7 +232,7 @@ fn extract_zip(file: &Path, target: &Path) -> anyhow::Result<()> {
if !target.exists() {
let _ = std::fs::create_dir_all(target)?;
}
for i in 0..zip.len() {
let mut file = zip.by_index(i)?;
if file.is_dir() {
@@ -252,4 +252,4 @@ fn extract_zip(file: &Path, target: &Path) -> anyhow::Result<()> {
}
Ok(())
}
}