mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-07 12:40:04 +00:00
Fix get_install_path
where cargo_home
succeeds
The returned path must join with `"bin"`. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
49f665d680
commit
b4d2e9b99c
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ pub fn get_install_path<P: AsRef<Path>>(install_path: Option<P>) -> (Option<Arc<
|
|||
|
||||
if let Ok(p) = cargo_home() {
|
||||
debug!("using ({}) as cargo home", p.display());
|
||||
return (Some(p.into()), false);
|
||||
return (Some(p.join("bin").into()), false);
|
||||
}
|
||||
|
||||
// Local executable dir if no cargo is found
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue