Skip to content

Commit

Permalink
Merge pull request #215 from silversword411/main
Browse files Browse the repository at this point in the history
Updating choco bulk to use --no-progress
  • Loading branch information
silversword411 authored Mar 6, 2024
2 parents 5ba2263 + f6210fb commit 63177e9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
.NOTES
9/2021 v1 Initial release by @silversword411 and @bradhawkins
11/14/2021 v1.1 Fixing typos and logic flow
12/8/2023 v1.3 Adding list, making choco full path
12/8/2023 v1.3 silversword411 Adding list, making choco full path
3/5/2024 v1.4 silversword411 Adding --no-progress to minimize output
#>

param (
Expand Down Expand Up @@ -65,7 +66,7 @@ switch ($Mode) {
"install" {
if ($PackageName) {
foreach ($package in $PackageName) {
& $chocoExePath install $package -y
& $chocoExePath install $package -y --no-progress
}
}
}
Expand All @@ -79,11 +80,11 @@ switch ($Mode) {
"upgrade" {
if ($PackageName) {
foreach ($package in $PackageName) {
& $chocoExePath upgrade $package -y
& $chocoExePath upgrade $package -y --no-progress
}
}
else {
& $chocoExePath upgrade all -y
& $chocoExePath upgrade all -y --no-progress
}
}
"list" {
Expand Down

0 comments on commit 63177e9

Please sign in to comment.