Fix path in previous commit

This commit is contained in:
Nathan Fisher 2022-12-21 20:20:43 -05:00
parent 728c66fb70
commit 0cc2bd507b

View File

@ -145,7 +145,7 @@ fn completions(prefix: &str, matches: &ArgMatches) -> Result<(), io::Error> {
COMMANDS.iter().try_for_each(|cmd| gen_bash_completion(&outdir, &cmd) )?; COMMANDS.iter().try_for_each(|cmd| gen_bash_completion(&outdir, &cmd) )?;
} }
if matches.get_flag("fish") || matches.get_flag("all") { if matches.get_flag("fish") || matches.get_flag("all") {
let outdir: PathBuf = ["target", "dist", "share", "fish", "completions"] let outdir: PathBuf = [prefix, "share", "fish", "completions"]
.iter() .iter()
.collect(); .collect();
if !outdir.exists() { if !outdir.exists() {