respect CleanOnly

This commit is contained in:
secretspecter 2023-06-28 12:31:09 -06:00
parent 3bc3b43d3a
commit 3aba831f2c

View file

@ -3,7 +3,9 @@ param(
[switch]$CleanOnly
)
if (-not $CleanOnly) {
winget upgrade --all
}
if ((Get-Command "scoop" -ErrorAction SilentlyContinue) -and -not $elevated) {
if (-not $CleanOnly) {