diff options
| author | Saikari <[email protected]> | 2026-02-02 03:19:20 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-02-02 03:19:20 +0300 |
| commit | 42fb29e925668f87329ac8ea42ec2af0f6e37634 (patch) | |
| tree | 341874524cdd096658a9d59b725937f434c998da /tests/modules/stdin/test.lua | |
| parent | d155d5d080335d5932c4b65d2c713814ea28c00d (diff) | |
refactor: update run_stdin command for MacOS compatibility
Diffstat (limited to 'tests/modules/stdin/test.lua')
| -rw-r--r-- | tests/modules/stdin/test.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/modules/stdin/test.lua b/tests/modules/stdin/test.lua index 461e76d68..665857595 100644 --- a/tests/modules/stdin/test.lua +++ b/tests/modules/stdin/test.lua @@ -26,9 +26,9 @@ function main(t) local run_stdin = string.format('env "%s" l --stdin', xmake) -- Fix pwsh and cosmocc "exec format error" for MacOS - if is_ape and (os.host() == "macosx" or os.host() == "linux") then - run_stdin = string.format('sh -c \\"%s\\"', run_stdin) - end + if is_ape and os.host() ~= "windows" then + run_stdin = string.format("sh -c ' \\\"%s\\\" l --stdin '", xmake) + end local function test_shell(name, cmd, expect) print("testing " .. name .. ": " .. cmd) |
