1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-08 07:08:27 -05:00

DENO_ROOT_INSTALL fix

This commit is contained in:
dovakin0007 2024-10-21 17:28:57 +05:30
parent 85709c70ab
commit bee1477807

View file

@ -215,7 +215,12 @@ pub async fn uninstall(
} else {
get_installer_root()?
};
let installation_dir = root.join("bin");
let installation_dir = if !root.ends_with("bin") {
root.join("bin")
} else {
root
};
// ensure directory exists
if let Ok(metadata) = fs::metadata(&installation_dir) {