Skip to content

Commit

Permalink
Allow install/upgrade multi packages
Browse files Browse the repository at this point in the history
  • Loading branch information
WenceyWang authored Jan 26, 2022
1 parent e7de635 commit bd89471
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tasks/chocolatey/chocolatey.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ try {
$chocolateyArguments.Add("--package-parameters=`"'$installParams'`"") > $null
}

$chocolateyArguments.Insert(0, $installPackageId) > $null
$chocolateyArguments.InsertRange(0, ($installPackageId).Split(' ')) > $null
$commandName = "install"
}
"pack"
Expand Down Expand Up @@ -330,7 +330,7 @@ try {
$chocolateyArguments.Add("--package-parameters=`"'$upgradeParams'`"") > $null
}

$chocolateyArguments.Insert(0, $upgradePackageId) > $null
$chocolateyArguments.InsertRange(0, ($upgradePackageId).Split(' ')) > $null
$commandName = "upgrade"
}
}
Expand Down

0 comments on commit bd89471

Please sign in to comment.