Actually fix stripping of " (deleted)" suffix

Commit 7b59ae0d82 (Unbreak hack to strip " (deleted)" suffix from
executable path, 2025-10-02) accidentally droped the "!".
This commit is contained in:
Johannes Altmanninger
2025-10-25 16:12:33 +02:00
parent f6584225c2
commit ce82577d2f

View File

@@ -162,7 +162,7 @@ fn compute_fish_path() -> PathBuf {
// When /proc/self/exe points to a file that was deleted (or overwritten on update!)
// then linux adds a " (deleted)" suffix.
// If that's not a valid path, let's remove that awkward suffix.
if path.as_os_str().as_bytes().ends_with(b" (deleted)") {
if !path.as_os_str().as_bytes().ends_with(b" (deleted)") {
return path;
}