From dda2d756facc1c8100261e2ebd4e115c84f515cc Mon Sep 17 00:00:00 2001 From: Marc-Antoine Perennou Date: Tue, 16 May 2017 17:22:52 +0200 Subject: [PATCH] rustbuild: fix bash completion installation dir Signed-off-by: Marc-Antoine Perennou --- src/bootstrap/dist.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 6557b8410b196..511f2c9e80ec7 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -596,7 +596,7 @@ pub fn cargo(build: &Build, stage: u32, target: &str) { // Prepare the image directory t!(fs::create_dir_all(image.join("share/zsh/site-functions"))); - t!(fs::create_dir_all(image.join("etc/bash_completions.d"))); + t!(fs::create_dir_all(image.join("etc/bash_completion.d"))); let cargo = build.cargo_out(&compiler, Mode::Tool, target) .join(exe("cargo", target)); install(&cargo, &image.join("bin"), 0o755); @@ -606,7 +606,7 @@ pub fn cargo(build: &Build, stage: u32, target: &str) { } install(&etc.join("_cargo"), &image.join("share/zsh/site-functions"), 0o644); copy(&etc.join("cargo.bashcomp.sh"), - &image.join("etc/bash_completions.d/cargo")); + &image.join("etc/bash_completion.d/cargo")); let doc = image.join("share/doc/cargo"); install(&src.join("README.md"), &doc, 0o644); install(&src.join("LICENSE-MIT"), &doc, 0o644);