scoop got hefty on me

This commit is contained in:
secretspecter 2023-07-29 20:26:48 -06:00
parent b2e1ead4c7
commit 5e4a8841ff

View file

@ -3,14 +3,15 @@ param(
[switch]$CleanOnly
)
if (-not $CleanOnly) {
winget upgrade --all
if (-not $CleanOnly -and -not $elevated) {
winget upgrade --all --include-unknown
}
if ((Get-Command "scoop" -ErrorAction SilentlyContinue) -and -not $elevated) {
if (-not $CleanOnly) {
scoop update
scoop update --all
scoop cleanup --al
}
scoop cache rm *
}