Update 'capture.ps1'

This commit is contained in:
cbrand 2023-04-15 01:22:57 -07:00
parent b0e0f2d095
commit f1c406a61a

View File

@ -26,10 +26,10 @@ foreach ($file in $fileList) {
$targetParent = Split-Path -Path $targetCopy -Parent $targetParent = Split-Path -Path $targetCopy -Parent
if (-not (Test-Path -Path $targetParent)) { if (-not (Test-Path -Path $targetParent)) {
New-Item -ItemType Directory -Path $targetParent -Force | Out-Null New-Item -ItemType Directory -Path $targetParent -Force | Out-Null
}
Write-Host "Copy-Item -Path '$($file.FullName)' -Destination '$($targetParent)'" Write-Host "Copy-Item -Path '$($file.FullName)' -Destination '$($targetParent)'"
Copy-Item -Path $file.FullName -Destination $targetParent Copy-Item -Path $file.FullName -Destination $targetParent
} }
} }
}
chown go:go ./* -R chown go:go ./* -R