Merge pull request #2574 from h0nIg/devel_win_lineinfile_acl

win_lineinfile: acl fix
This commit is contained in:
Brian Coca 2016-01-12 10:48:54 -05:00
commit 1873afc29d

View file

@ -96,7 +96,8 @@ function WriteLines($outlines, $dest, $linesep, $encodingobj, $validate) {
# Commit changes to the destination file
$cleandest = $dest.Replace("/", "\");
Move-Item $temppath $cleandest -force;
Copy-Item $temppath $cleandest -force;
Remove-Item $temppath -force;
}