diff options
| author | ruki <[email protected]> | 2025-11-07 22:40:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-07 15:01:57 +0800 |
| commit | ca2cc6d298729b2b060fd08af37a64d5958890f8 (patch) | |
| tree | 9d86ef14516736a336aaa48675bfc970558c458d /xmake/core/base/os.lua | |
| parent | cf31cdc6eacf6a793989df538ecc7a00d48c6457 (diff) | |
remove builtin async os.rm
Diffstat (limited to 'xmake/core/base/os.lua')
| -rw-r--r-- | xmake/core/base/os.lua | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index f602e2df7..dcd5ab5d1 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -874,15 +874,10 @@ function os.runv(program, argv, opt) errors = string.format("cannot runv(%s), %s", cmd, errors and errors or "unknown reason") end - -- remove the temporary log file - os.rm(logfile, {async = true, detach = true}) - - -- failed + os.rm(logfile) return false, errors end - - -- remove the temporary log file - os.rm(logfile, {async = true, detach = true}) + os.rm(logfile) return true end @@ -1105,8 +1100,8 @@ function os.iorunv(program, argv, opt) local errdata = io.readfile(errfile) -- remove the temporary output and error file - os.rm(outfile, {async = true, detach = true}) - os.rm(errfile, {async = true, detach = true}) + os.rm(outfile) + os.rm(errfile) return ok == 0, outdata, errdata, errors end |
