diff options
| author | Saikari <[email protected]> | 2026-02-01 08:39:02 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-02-01 08:39:02 +0300 |
| commit | 26904439b5907b973201019a5d1083eee1261272 (patch) | |
| tree | c8b9457a72ecefb8efdf3b6d274b118f74c22742 /xmake/plugins/lua/main.lua | |
| parent | 9079d266a3182c04be11dfe98a6ea44c66afee13 (diff) | |
refactor: enhance temporary file naming for stdin script handling
Diffstat (limited to 'xmake/plugins/lua/main.lua')
| -rw-r--r-- | xmake/plugins/lua/main.lua | 2 |
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 {} |
