Skip to content

Commit 9f8941b

Browse files
Merge pull request #864 from charlespierce/install_dir_symlink
[Tiny] Correctly locate install_dir
2 parents d2bd691 + 4801537 commit 9f8941b

File tree

1 file changed

+1
-1
lines changed
  • crates/volta-core/src/layout

1 file changed

+1
-1
lines changed

crates/volta-core/src/layout/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ pub fn volta_install<'a>() -> Fallible<&'a VoltaInstall> {
5353
/// actual binary files
5454
fn default_install_dir() -> Fallible<PathBuf> {
5555
env::current_exe()
56+
.and_then(canonicalize)
5657
.map(|mut path| {
5758
path.pop(); // Remove the executable name from the path
5859
path
5960
})
60-
.and_then(canonicalize)
6161
.with_context(|| ErrorKind::NoInstallDir)
6262
}

0 commit comments

Comments
 (0)