Only ignore files failed to copy

Copy process should continue as the rest files may succeed.
This commit is contained in:
Zhongcheng Lao 2019-06-20 15:47:09 +08:00
parent 71f5b0f97f
commit cc703fd77c
1 changed files with 0 additions and 1 deletions

View File

@ -28,7 +28,6 @@ function copy-file($machine, $file_list, $path_separator) {
Write-Host "Copied $from to $($machine) => $to."
} Catch {
$failed += $from
Break
}
}
[hashtable]$return = @{}