mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-04-20 20:26:50 +00:00
Fix build error if dir "completion" does not exist
This commit is contained in:
parent
b3054f971e
commit
ce52f92a7f
2
build.rs
2
build.rs
@ -35,7 +35,7 @@ fn main() -> Result<(), Error> {
|
|||||||
|
|
||||||
let package_name = std::env::var("CARGO_CRATE_NAME").unwrap_or("osc-variant".to_string());
|
let package_name = std::env::var("CARGO_CRATE_NAME").unwrap_or("osc-variant".to_string());
|
||||||
|
|
||||||
fs::remove_dir_all("completion")?;
|
fs::remove_dir_all("completion").unwrap_or_default();
|
||||||
fs::create_dir("completion")?;
|
fs::create_dir("completion")?;
|
||||||
|
|
||||||
generate_to(Bash, &mut cmd, package_name.as_str(), "completion")?;
|
generate_to(Bash, &mut cmd, package_name.as_str(), "completion")?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user