mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 10:19:36 -06:00
Remove redundant Images directory creation logic
This commit is contained in:
@@ -121,13 +121,6 @@ $Destination = $Drive + ":\"
|
|||||||
Start-Job -ScriptBlock $jobScriptBlock -ArgumentList $ImagesPath, $Destination | Out-Null
|
Start-Job -ScriptBlock $jobScriptBlock -ArgumentList $ImagesPath, $Destination | Out-Null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!($Images)){
|
|
||||||
foreach ($Drive in $DeployDrives) {
|
|
||||||
WriteLog "Create images directory"
|
|
||||||
$drivepath = $Drive + ":\"
|
|
||||||
New-Item -Path "$drivepath" -Name Images -ItemType Directory -Force -Confirm: $false | Out-Null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if($Drivers){
|
if($Drivers){
|
||||||
writelog "Copying driver files to all drives labeled deploy concurrently"
|
writelog "Copying driver files to all drives labeled deploy concurrently"
|
||||||
foreach ($Drive in $DeployDrives) {
|
foreach ($Drive in $DeployDrives) {
|
||||||
|
|||||||
Reference in New Issue
Block a user