use CARGO_MANIFEST_DIR instead of PWD
This commit is contained in:
parent
be2639d9fe
commit
8e2948fbb9
6
build.rs
6
build.rs
@ -19,6 +19,10 @@ use structopt::StructOpt;
|
|||||||
fn main() {
|
fn main() {
|
||||||
// generate completion scripts, zsh does panic for some reason
|
// generate completion scripts, zsh does panic for some reason
|
||||||
for shell in Shell::variants().iter().filter(|shell| **shell != "zsh") {
|
for shell in Shell::variants().iter().filter(|shell| **shell != "zsh") {
|
||||||
Args::clap().gen_completions(env!("CARGO_PKG_NAME"), Shell::from_str(shell).unwrap(), ".");
|
Args::clap().gen_completions(
|
||||||
|
env!("CARGO_PKG_NAME"),
|
||||||
|
Shell::from_str(shell).unwrap(),
|
||||||
|
env!("CARGO_MANIFEST_DIR"),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user