mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 17:53:10 +00:00
do not move item, instead copy item because acl will be kept
This commit is contained in:
committed by
Matt Clay
parent
4d30ae313d
commit
41ab7f8aed
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user