Skip to content

Commit

Permalink
fix some messages and prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
MordechaiHadad committed Nov 5, 2024
1 parent d8046f3 commit 2aaa640
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/handlers/use_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,13 @@ async fn copy_file_with_error_handling(old_path: &Path, new_path: &Path) -> Resu
async fn add_to_path(installation_dir: PathBuf, config: ConfigFile) -> Result<()> {
let installation_dir = installation_dir.to_str().unwrap();

if what_the_path::shell::exists_in_path("nvim-bin")
|| config.config.add_neovim_binary_to_path == Some(false)
if what_the_path::shell::exists_in_path("nvim-bin"){
return Ok(());
}

if config.config.add_neovim_binary_to_path == Some(false)
{
info!("Make sure to have {installation_dir} in PATH");
info!("Make sure to add {installation_dir} to $PATH");
return Ok(());
}

Expand Down

0 comments on commit 2aaa640

Please sign in to comment.