Merge pull request #862 from matthiasbeyer/fix-imag-bin-build

Fix build-script of imag-bin
This commit is contained in:
Matthias Beyer 2017-01-25 09:57:00 +01:00 committed by GitHub
commit ce36b38aa9

View file

@ -73,10 +73,12 @@ fn main() {
.subcommand(build_subcommand!("tag", imagtag)) .subcommand(build_subcommand!("tag", imagtag))
.subcommand(build_subcommand!("view", imagview)); .subcommand(build_subcommand!("view", imagview));
let outdir = std::env::var("OUT_DIR").unwrap();
// Actually generates the completion files // Actually generates the completion files
app.gen_completions("imag", Shell::Bash, env!("OUT_DIR")); app.gen_completions("imag", Shell::Bash, outdir);
app.gen_completions("imag", Shell::Fish, env!("OUT_DIR")); app.gen_completions("imag", Shell::Fish, outdir);
app.gen_completions("imag", Shell::Zsh, env!("OUT_DIR")); app.gen_completions("imag", Shell::Zsh, outdir);
} }