mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-09 20:33:24 +00:00
Co-authored-by: Chongyun Lee <45286352+licy183@users.noreply.github.com> Co-authored-by: Jia Yuan Lo <jylo06g@gmail.com>
14 lines
547 B
Diff
14 lines
547 B
Diff
diff --git a/ext/node/polyfills/os.ts b/ext/node/polyfills/os.ts
|
|
index edc89ed2c..ae24b53a1 100644
|
|
--- a/ext/node/polyfills/os.ts
|
|
+++ b/ext/node/polyfills/os.ts
|
|
@@ -287,7 +287,7 @@ export function tmpdir(): string | null {
|
|
return temp;
|
|
} else { // !isWindows
|
|
let temp = Deno.env.get("TMPDIR") || Deno.env.get("TMP") ||
|
|
- Deno.env.get("TEMP") || "/tmp";
|
|
+ Deno.env.get("TEMP") || "@TERMUX_PREFIX@/tmp";
|
|
if (temp.length > 1 && StringPrototypeEndsWith(temp, "/")) {
|
|
temp = StringPrototypeSlice(temp, 0, -1);
|
|
}
|