mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Fix broken __fish_bin_dir when running out of build directory
`exec_path` is the path to the `fish` binary itself. This would cause the shell to try to execute /foo/bar/fish/fish, which would, of course, fail.
This commit is contained in:
parent
90150e1729
commit
f711c874ce
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ fn determine_config_directory_paths(argv0: impl AsRef<Path>) -> ConfigPaths {
|
||||||
data: manifest_dir.join("share"),
|
data: manifest_dir.join("share"),
|
||||||
sysconf: manifest_dir.join("etc"),
|
sysconf: manifest_dir.join("etc"),
|
||||||
doc: manifest_dir.join("user_doc/html"),
|
doc: manifest_dir.join("user_doc/html"),
|
||||||
bin: exec_path.clone(),
|
bin: exec_path.parent().unwrap().to_owned(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue