Compare commits

..

No commits in common. "07e154459de7083171aa7f08973ff9afdf70ab0c" and "00987fe4a2650d701abc576570402c92170fb982" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -248,8 +248,8 @@ function Remove-FileOrDirectory([string]$pathToDelete, [string]$mask = "", [swit
function New-Unattend { function New-Unattend {
param ( param (
[Parameter(Mandatory, Position = 0)] [string]$userName, [Parameter(Mandatory, Position = 0)] [string] $userName,
[Parameter(Position = 1)] [string]$userPassword [Parameter(Position = 1)] [string] $userPassword
) )
$unattend = @' $unattend = @'

View File

@ -164,7 +164,7 @@
-replace ('\}\s*Catch', '} catch') ` -replace ('\}\s*Catch', '} catch') `
-replace ('\}\s*Catch\s*(?<exceptions>(\[.*?\]\s*(\,)?\s*)+)\s*\{', '} catch ${exceptions} {') ` -replace ('\}\s*Catch\s*(?<exceptions>(\[.*?\]\s*(\,)?\s*)+)\s*\{', '} catch ${exceptions} {') `
-replace ('\}\s*Catch\s*(?<exceptions>\[.*?\])\s*\{', '} catch ${exceptions} {') ` -replace ('\}\s*Catch\s*(?<exceptions>\[.*?\])\s*\{', '} catch ${exceptions} {') `
-replace ('(?<parameter_type>\[[^$0-9]+\])\s*(?<str_after_type>\$.*?)', '${parameter_type}${str_after_type}') ` -replace ('(?<parameter_type>\[[^$]+\])\s*(?<str_after_type>\$.*?)', '${parameter_type}${str_after_type}') `
| Set-Content "$fullFileName" | Set-Content "$fullFileName"
Write-Progress -Activity $ProgressActivity -Status "$ProgressStatusMessage - Finished $i out of $numOfFiles" -PercentComplete (($i/$numOfFiles)*100) Write-Progress -Activity $ProgressActivity -Status "$ProgressStatusMessage - Finished $i out of $numOfFiles" -PercentComplete (($i/$numOfFiles)*100)