diff options
| author | Saikari <[email protected]> | 2026-02-02 12:26:20 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-02-02 12:26:20 +0300 |
| commit | 30cfb753c860681adf34ddf3507119ff63f9f8be (patch) | |
| tree | b841d0c5049296d795601a539482d40ff7b91a30 /tests/modules/stdin/test.lua | |
| parent | 1f23a23c7ef92f0cc20e402abb4a510a3cb72f00 (diff) | |
refactor: remove unnecessary header check for ape executable on Linux
Diffstat (limited to 'tests/modules/stdin/test.lua')
| -rw-r--r-- | tests/modules/stdin/test.lua | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/modules/stdin/test.lua b/tests/modules/stdin/test.lua index e2d139e87..1780c622c 100644 --- a/tests/modules/stdin/test.lua +++ b/tests/modules/stdin/test.lua @@ -36,16 +36,6 @@ function main(t) xmake = fix_ape_programfile(xmake) local is_ape = path.filename(xmake):find("ape", 1, true) ~= nil or xmake:endswith(".com") - if not is_ape and is_host("linux") and os.isfile(xmake) then - local file = io.open(xmake, "rb") - if file then - local header = file:read(2) - file:close() - if header == "MZ" then - is_ape = true - end - end - end local run_stdin = string.format('"%s" l --stdin', xmake) if not is_host("windows") then |
