ports/lang/deno/patches/patch-cli_main_rs

14 lines
437 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: cli/main.rs
--- cli/main.rs.orig
+++ cli/main.rs
2023-09-08 05:21:37 +00:00
@@ -265,7 +265,8 @@ pub fn main() {
2023-08-16 22:26:55 +00:00
let args: Vec<String> = env::args().collect();
let future = async move {
- let current_exe_path = current_exe()?;
+ let current_exe_path = current_exe()
+ .unwrap_or(PathBuf::from("${LOCALBASE}/bin/deno"));
let standalone_res =
match standalone::extract_standalone(&current_exe_path, args.clone())
.await