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:
Mahmoud Al-Qudsi 2024-06-26 19:01:57 -05:00
parent 90150e1729
commit f711c874ce

View file

@ -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(),
} }
} }