提交 fb849b7b 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #30159 from allcentury/dump-temp-file-permissions

Use copy to preserve file permissions
......@@ -136,7 +136,7 @@ def remove_sql_header_comments(filename)
ensure
tempfile.close
end
FileUtils.mv(tempfile.path, filename)
FileUtils.cp(tempfile.path, filename)
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册