Skip to content

Commit

Permalink
[MicroWin] Fixed divide by zero error for fallback
Browse files Browse the repository at this point in the history
<Insert the never mind - misspelled a variable meme here>
  • Loading branch information
CodingWonders committed Jan 24, 2025
1 parent eba5b35 commit 81d631c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/microwin/Microwin-RemovePackages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function Microwin-RemovePackages {
} else {
foreach ($package in $pkgList) {
$status = "Removing package $package"
Write-Progress -Activity "Removing features" -Status $status -PercentComplete ($counter++/$featlist.Count*100)
Write-Progress -Activity "Removing Packages" -Status $status -PercentComplete ($counter++/$pkglist.Count*100)
Write-Debug "Removing package $package"
dism /english /image="$scratchDir" /remove-package /packagename=$package /remove /quiet /norestart | Out-Null
if ($? -eq $false) {
Expand Down

0 comments on commit 81d631c

Please # to comment.