Skip to content

Commit

Permalink
Low level failures detected+debug mode in execute
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaurens committed Jul 4, 2024
1 parent df09ec1 commit 407cb21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
6 changes: 3 additions & 3 deletions l3build-file-functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 407cb21

Please sign in to comment.