diff --git a/lib/system/env/mod.rs b/lib/system/env/mod.rs index 3060397..82880eb 100644 --- a/lib/system/env/mod.rs +++ b/lib/system/env/mod.rs @@ -41,7 +41,7 @@ pub async fn add_to_path(home: &Home) -> RokitResult { */ #[must_use] pub fn exists_in_path(_home: &Home) -> bool { - let pattern = format!("rokit{MAIN_SEPARATOR_STR}bin"); + let pattern = format!(".rokit{MAIN_SEPARATOR_STR}bin"); var_os("PATH").map_or(false, |path| { split_paths(&path).any(|item| item.ends_with(&pattern)) })