mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 04:58:42 +00:00
Update src/helpers.rs
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
ac74da4a27
commit
f2905dd46e
1 changed files with 7 additions and 1 deletions
|
@ -192,7 +192,13 @@ pub fn get_install_path<P: AsRef<Path>>(install_path: Option<P>) -> Option<PathB
|
|||
}
|
||||
|
||||
// Local executable dir if no cargo is found
|
||||
if let Some(d) = dirs::executable_dir() {
|
||||
let dir = dirs::executable_dir();
|
||||
|
||||
if let Some(d) = &dir {
|
||||
debug!("Fallback to {}", d.display());
|
||||
}
|
||||
|
||||
dir
|
||||
debug!("Fallback to {}", d.display());
|
||||
return Some(d);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue