Skip to content

Commit

Permalink
Fixed check for rokit binaries under PATH (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxuum committed Aug 28, 2024
1 parent d039561 commit 3f54987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/system/env/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub async fn add_to_path(home: &Home) -> RokitResult<bool> {
*/
#[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))
})
Expand Down

0 comments on commit 3f54987

Please sign in to comment.