1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00

DENO_ROOT_INSTALL fix

This commit is contained in:
dovakin0007 2024-10-21 18:15:50 +05:30
parent bee1477807
commit 5d9af87c84

View file

@ -438,7 +438,12 @@ async fn resolve_shim_data(
} 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
};
// Check if module_url is remote // Check if module_url is remote
let module_url = resolve_url_or_path(&install_flags_global.module_url, &cwd)?; let module_url = resolve_url_or_path(&install_flags_global.module_url, &cwd)?;