diff --git a/CHANGELOG.md b/CHANGELOG.md index a447554..71b4905 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ this project uses date-based 'snapshot' version identifiers. ### Fixed - Global `typesetopts` no longer ignored for `luatex` and `lualatex` (issue \#351) - Handling of spaces in options +- Low level failures detected ## [2024-05-27] diff --git a/l3build-file-functions.lua b/l3build-file-functions.lua index a1b22ce..c706ea4 100644 --- a/l3build-file-functions.lua +++ b/l3build-file-functions.lua @@ -236,12 +236,12 @@ function cp(glob, source, dest) errorlevel = execute( 'xcopy /y /e /i "' .. unix_to_win(p.cwd) .. '" ' .. unix_to_win(dest .. '/' .. escapepath(p.src)) .. ' > nul' - ) and 0 or 1 + ) -- execute returns an integer else errorlevel = execute( 'xcopy /y "' .. unix_to_win(p.cwd) .. '" ' .. unix_to_win(dest .. '/') .. ' > nul' - ) and 0 or 1 + ) -- execute returns an integer end else -- Ensure we get similar behavior on all platforms @@ -251,7 +251,7 @@ function cp(glob, source, dest) end errorlevel = execute( "cp -RLf '" .. p.cwd .. "' " .. dest - ) and 0 or 1 + ) -- execute returns an integer end if errorlevel ~=0 then return errorlevel