summaryrefslogtreecommitdiff
path: root/xmake/plugins/lua
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-02-01 08:39:02 +0300
committerSaikari <[email protected]>2026-02-01 08:39:02 +0300
commit26904439b5907b973201019a5d1083eee1261272 (patch)
treec8b9457a72ecefb8efdf3b6d274b118f74c22742 /xmake/plugins/lua
parent9079d266a3182c04be11dfe98a6ea44c66afee13 (diff)
refactor: enhance temporary file naming for stdin script handling
Diffstat (limited to 'xmake/plugins/lua')
-rw-r--r--xmake/plugins/lua/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/lua/main.lua b/xmake/plugins/lua/main.lua
index f3e6f400d..26cc8a360 100644
--- a/xmake/plugins/lua/main.lua
+++ b/xmake/plugins/lua/main.lua
@@ -63,7 +63,7 @@ function main()
if script == "-" or from_stdin then
local script_content = io.stdin:read("*a")
if script_content then
- scriptfile_stdin = os.tmpfile("xmake_lua_stdin") .. ".lua"
+ scriptfile_stdin = os.tmpfile("xmake_lua_stdin_" .. hash.uuid4()) .. ".lua"
io.writefile(scriptfile_stdin, script_content)
if from_stdin and script and script ~= "-" then
arguments = arguments or {}