scoop got hefty on me
This commit is contained in:
parent
b2e1ead4c7
commit
5e4a8841ff
|
@ -3,14 +3,15 @@ param(
|
||||||
[switch]$CleanOnly
|
[switch]$CleanOnly
|
||||||
)
|
)
|
||||||
|
|
||||||
if (-not $CleanOnly) {
|
if (-not $CleanOnly -and -not $elevated) {
|
||||||
winget upgrade --all
|
winget upgrade --all --include-unknown
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((Get-Command "scoop" -ErrorAction SilentlyContinue) -and -not $elevated) {
|
if ((Get-Command "scoop" -ErrorAction SilentlyContinue) -and -not $elevated) {
|
||||||
if (-not $CleanOnly) {
|
if (-not $CleanOnly) {
|
||||||
scoop update
|
scoop update
|
||||||
scoop update --all
|
scoop update --all
|
||||||
|
scoop cleanup --al
|
||||||
}
|
}
|
||||||
scoop cache rm *
|
scoop cache rm *
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue