mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-02 02:53:31 -05:00
Fix multiple winget entry in json file (#405)
* Update Branch in script * add logic to split ; delimiter * Update Branch in script * update tests * Update Branch in script * Update winutil.ps1 * Update Branch in script * Update winutil.ps1 * Update Branch in script Co-authored-by: DeveloperDurp <DeveloperDurp@users.noreply.github.com> Co-authored-by: Chris Titus <contact@christitus.com> Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com>
This commit is contained in:
15
winutil.ps1
15
winutil.ps1
@ -1,5 +1,5 @@
|
||||
#for CI/CD
|
||||
$BranchToUse = 'main'
|
||||
$BranchToUse = 'hotfix/applications'
|
||||
<#
|
||||
.NOTES
|
||||
Author : Chris Titus @christitustech
|
||||
@ -117,14 +117,17 @@ Function Get-CheckBoxes {
|
||||
|
||||
if($Group -eq "WPFInstall"){
|
||||
Foreach ($CheckBox in $CheckBoxes){
|
||||
if($checkbox.value.ischecked -eq $true){
|
||||
$output.Add("$($configs.applications.install.$($checkbox.name).winget)")
|
||||
$checkbox.value.ischecked = $false
|
||||
if($CheckBox.value.ischecked -eq $true){
|
||||
$Configs.applications.install.$($CheckBox.name).winget -split ";" | ForEach-Object {
|
||||
$Output.Add($psitem)
|
||||
}
|
||||
|
||||
$CheckBox.value.ischecked = $false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Write-Output $Output
|
||||
|
||||
Write-Output $($Output | Select-Object -Unique)
|
||||
}
|
||||
|
||||
#===========================================================================
|
||||
|
Reference in New Issue
Block a user