diff --git a/functions/private/Install-WinUtilProgramChoco.ps1 b/functions/private/Install-WinUtilProgramChoco.ps1 index 10f580ec..e0b77f91 100644 --- a/functions/private/Install-WinUtilProgramChoco.ps1 +++ b/functions/private/Install-WinUtilProgramChoco.ps1 @@ -78,7 +78,7 @@ function Install-WinUtilProgramChoco { if ($manage -eq "Uninstalling") { Write-Host "Searching for Metapackages of of $($Program.choco) (.install or .portable)" - $chocoPackages = ((choco list | Select-String -Pattern "$($Program.choco)(\.install|\.portable){0,1}").Matches.Value) -join " " + $chocoPackages = ((choco list | Select-String -Pattern "$($Program.choco)(\.install|\.portable) {0,1}").Matches.Value) -join " " Write-Host "Starting uninstall of $chocoPackages with Chocolatey." try { $uninstallOutputFilePath = "$env:TEMP\Install-WinUtilProgramChoco.uninstall-command.output.txt" diff --git a/functions/private/Invoke-WinUtilCurrentSystem.ps1 b/functions/private/Invoke-WinUtilCurrentSystem.ps1 index b8d1e377..e62568f4 100644 --- a/functions/private/Invoke-WinUtilCurrentSystem.ps1 +++ b/functions/private/Invoke-WinUtilCurrentSystem.ps1 @@ -13,11 +13,11 @@ Function Invoke-WinUtilCurrentSystem { param( $CheckBox ) - if ($CheckBox -eq "choco"){ + if ($CheckBox -eq "choco") { $apps = (choco list | Select-String -Pattern "^\S+").Matches.Value $filter = Get-WinUtilVariables -Type Checkbox | Where-Object {$psitem -like "WPFInstall*"} $sync.GetEnumerator() | Where-Object {$psitem.Key -in $filter} | ForEach-Object { - $dependencies = @($sync.configs.applications.$($psitem.Key).choco -split ";") + $dependencies = @($sync.configs.applications.$($psitem.Key).choco -split ";") if ($dependencies -in $apps) { Write-Output $psitem.name } diff --git a/functions/public/Invoke-WPFInstallUpgrade.ps1 b/functions/public/Invoke-WPFInstallUpgrade.ps1 index 4f2713e5..c86ee123 100644 --- a/functions/public/Invoke-WPFInstallUpgrade.ps1 +++ b/functions/public/Invoke-WPFInstallUpgrade.ps1 @@ -33,4 +33,4 @@ function Invoke-WPFInstallUpgrade { Write-Host "-- You can close this window if desired ---" Write-Host "===========================================" } -} \ No newline at end of file +} diff --git a/scripts/main.ps1 b/scripts/main.ps1 index 29867f4b..e34bc9c1 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -91,7 +91,7 @@ $xaml.SelectNodes("//*[@Name]") | ForEach-Object {$sync["$("$($psitem.Name)")"] $ChocoPreferencePath = "$env:LOCALAPPDATA\winutil\preferChocolatey.ini" $sync.WPFpreferChocolatey.Add_Checked({New-Item -Path $ChocoPreferencePath -Force }) $sync.WPFpreferChocolatey.Add_Unchecked({Remove-Item $ChocoPreferencePath -Force}) -if (Test-Path $ChocoPreferencePath){ +if (Test-Path $ChocoPreferencePath) { $sync.WPFpreferChocolatey.IsChecked = $true }