mirror of
https://github.com/denoland/deno.git
synced 2025-01-08 23:28:18 -05:00
DENO_ROOT_INSTALL fix
This commit is contained in:
parent
85709c70ab
commit
bee1477807
1 changed files with 6 additions and 1 deletions
|
@ -215,7 +215,12 @@ pub async fn uninstall(
|
||||||
} else {
|
} else {
|
||||||
get_installer_root()?
|
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
|
// ensure directory exists
|
||||||
if let Ok(metadata) = fs::metadata(&installation_dir) {
|
if let Ok(metadata) = fs::metadata(&installation_dir) {
|
||||||
|
|
Loading…
Reference in a new issue