Skip to content

Commit cadd98d

Browse files
authored
dtutils_file.file_copy: use the result
1 parent d355095 commit cadd98d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/dtutils/file.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,7 @@ function dtutils_file.file_copy(fromFile, toFile)
292292
local result = nil
293293
-- if cp exists, use it
294294
if dt.configuration.running_os == "windows" then
295-
os.execute('copy "' .. fromFile .. '" "' .. toFile .. '"')
296-
result = true
295+
result = os.execute('copy "' .. fromFile .. '" "' .. toFile .. '"')
297296
elseif dtutils_file.check_if_bin_exists("cp") then
298297
result = os.execute("cp '" .. fromFile .. "' '" .. toFile .. "'")
299298
end

0 commit comments

Comments
 (0)