mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-06-28 00:54:47 -05:00
Fixing the winget installing 0 failed
error (#3391)
It just adds the `$null =` from the else to the start of the add line if the package is equal to `na`. For winget the package added is put into an extra set of $(), because of how it is in the else. I haven't tested it without.
This commit is contained in:
@ -33,7 +33,7 @@ function Get-WinUtilSelectedPackages
|
|||||||
"Choco" {
|
"Choco" {
|
||||||
if ($package.choco -eq "na") {
|
if ($package.choco -eq "na") {
|
||||||
Write-Debug "$($package.content) has no Choco value."
|
Write-Debug "$($package.content) has no Choco value."
|
||||||
$packagesWinget.add($package.winget)
|
$null = $packagesWinget.add($($package.winget))
|
||||||
Write-Host "Queueing $($package.winget) for Winget"
|
Write-Host "Queueing $($package.winget) for Winget"
|
||||||
} else {
|
} else {
|
||||||
$null = $packagesChoco.add($package.choco)
|
$null = $packagesChoco.add($package.choco)
|
||||||
@ -44,7 +44,7 @@ function Get-WinUtilSelectedPackages
|
|||||||
"Winget" {
|
"Winget" {
|
||||||
if ($package.winget -eq "na") {
|
if ($package.winget -eq "na") {
|
||||||
Write-Debug "$($package.content) has no Winget value."
|
Write-Debug "$($package.content) has no Winget value."
|
||||||
$packagesChoco.add($package.choco)
|
$null = $packagesChoco.add($package.choco)
|
||||||
Write-Host "Queueing $($package.choco) for Chocolatey"
|
Write-Host "Queueing $($package.choco) for Chocolatey"
|
||||||
} else {
|
} else {
|
||||||
$null = $packagesWinget.add($($package.winget))
|
$null = $packagesWinget.add($($package.winget))
|
||||||
|
Reference in New Issue
Block a user