Skip to content

Commit 2b6ed3a

Browse files
committed
Auto merge of #42041 - Keruspe:master, r=alexcrichton
rustbuild: fix bash completion installation dir
2 parents 208d23a + dda2d75 commit 2b6ed3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/dist.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ pub fn cargo(build: &Build, stage: u32, target: &str) {
596596

597597
// Prepare the image directory
598598
t!(fs::create_dir_all(image.join("share/zsh/site-functions")));
599-
t!(fs::create_dir_all(image.join("etc/bash_completions.d")));
599+
t!(fs::create_dir_all(image.join("etc/bash_completion.d")));
600600
let cargo = build.cargo_out(&compiler, Mode::Tool, target)
601601
.join(exe("cargo", target));
602602
install(&cargo, &image.join("bin"), 0o755);
@@ -606,7 +606,7 @@ pub fn cargo(build: &Build, stage: u32, target: &str) {
606606
}
607607
install(&etc.join("_cargo"), &image.join("share/zsh/site-functions"), 0o644);
608608
copy(&etc.join("cargo.bashcomp.sh"),
609-
&image.join("etc/bash_completions.d/cargo"));
609+
&image.join("etc/bash_completion.d/cargo"));
610610
let doc = image.join("share/doc/cargo");
611611
install(&src.join("README.md"), &doc, 0o644);
612612
install(&src.join("LICENSE-MIT"), &doc, 0o644);

0 commit comments

Comments
 (0)