From 5e4a8841ffddb2ed36458a520c78eed3b1e33634 Mon Sep 17 00:00:00 2001 From: secretspecter Date: Sat, 29 Jul 2023 20:26:48 -0600 Subject: [PATCH] scoop got hefty on me --- Scripts/Update-And-Clean.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Scripts/Update-And-Clean.ps1 b/Scripts/Update-And-Clean.ps1 index 6954f6b..58f79ab 100644 --- a/Scripts/Update-And-Clean.ps1 +++ b/Scripts/Update-And-Clean.ps1 @@ -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 * }