From f711c874ce7caaa229b8dcdf0e81d36106de0b79 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Wed, 26 Jun 2024 19:01:57 -0500 Subject: [PATCH] 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. --- src/bin/fish.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/fish.rs b/src/bin/fish.rs index 16688faff..d7680f2cb 100644 --- a/src/bin/fish.rs +++ b/src/bin/fish.rs @@ -168,7 +168,7 @@ fn determine_config_directory_paths(argv0: impl AsRef) -> ConfigPaths { data: manifest_dir.join("share"), sysconf: manifest_dir.join("etc"), doc: manifest_dir.join("user_doc/html"), - bin: exec_path.clone(), + bin: exec_path.parent().unwrap().to_owned(), } }