aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/downloader/archive_downloader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/downloader/archive_downloader.rs')
-rw-r--r--crates/shirabe/src/downloader/archive_downloader.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe/src/downloader/archive_downloader.rs b/crates/shirabe/src/downloader/archive_downloader.rs
index 03edffe..02cd8a9 100644
--- a/crates/shirabe/src/downloader/archive_downloader.rs
+++ b/crates/shirabe/src/downloader/archive_downloader.rs
@@ -99,7 +99,7 @@ pub trait ArchiveDownloader {
self.inner_mut().add_cleanup_path(package, &temporary_dir);
// avoid cleaning up $path if installing in "." for eg create-project as we can not
// delete the directory we are currently in on windows
- if !is_dir(path) || realpath(path) != Platform::get_cwd() {
+ if !is_dir(path) || realpath(path) != Platform::get_cwd(false).unwrap_or_default() {
self.inner_mut().add_cleanup_path(package, path);
}
@@ -116,7 +116,7 @@ pub trait ArchiveDownloader {
// clean up
filesystem.remove_directory(&temporary_dir);
- if is_dir(path) && realpath(path) != Platform::get_cwd() {
+ if is_dir(path) && realpath(path) != Platform::get_cwd(false).unwrap_or_default() {
filesystem.remove_directory(path);
}
self.inner_mut()