Remove archive existence check when restoring personal files
This commit is contained in:
parent
4f1d8ab214
commit
d4a64e8e71
1 changed files with 1 additions and 4 deletions
|
@ -25,9 +25,6 @@ function Restore-PersonalFiles([Context] $context) {
|
||||||
|
|
||||||
foreach ($candidate in Get-BackupCandidates) {
|
foreach ($candidate in Get-BackupCandidates) {
|
||||||
$archivePath = $context.FileArchivePath($candidate[0]);
|
$archivePath = $context.FileArchivePath($candidate[0]);
|
||||||
|
$context.Restore($archivePath, $candidate[1]);
|
||||||
if (Test-Path -PathType Leaf $archivePath) {
|
|
||||||
$context.Restore($archivePath, $candidate[1]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue