Skip to content

Commit df232dd

Browse files
author
rajatagrawal-dev
authored
clean target /E (#7845)
1 parent 9b4b759 commit df232dd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Tasks/WindowsMachineFileCopyV2/RoboCopyJob.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ param (
9898

9999
function Clean-Target
100100
{
101-
$cleanupArgument = "/NOCOPY /PURGE"
101+
$cleanupArgument = "/NOCOPY /E /PURGE"
102102
$guid = [GUID]::NewGuid()
103103
$tempDirectory = "$scriptRoot\temp$guid"
104104
New-Item -ItemType Directory -Force -Path $tempDirectory
105-
Invoke-Expression "robocopy `"$sourceDirectory`" `"$destinationNetworkPath`" `"*.*`" $cleanupArgument"
105+
Invoke-Expression "robocopy `"$tempDirectory`" `"$destinationNetworkPath`" `"*.*`" $cleanupArgument"
106106
Remove-Item $tempDirectory -Recurse -ErrorAction Ignore
107107
}
108108

Tasks/WindowsMachineFileCopyV2/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"version": {
1414
"Major": 2,
1515
"Minor": 1,
16-
"Patch": 2
16+
"Patch": 3
1717
},
1818
"releaseNotes": "What's new in Version 2.0: <br/>&nbsp;&nbsp;Proxy support is being added. <br/>&nbsp;&nbsp; Removed support of legacy DTL machines.",
1919
"minimumAgentVersion": "1.104.0",

Tasks/WindowsMachineFileCopyV2/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"version": {
1414
"Major": 2,
1515
"Minor": 1,
16-
"Patch": 2
16+
"Patch": 3
1717
},
1818
"releaseNotes": "ms-resource:loc.releaseNotes",
1919
"minimumAgentVersion": "1.104.0",

0 commit comments

Comments
 (0)