mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-15 11:10:54 +01:00
Update install-updates.ps1
This commit is contained in:
parent
f77735e741
commit
3a0c2eca64
@ -27,14 +27,13 @@ try {
|
||||
"⏳ (4/4) Upgrading installed Snap packages..."
|
||||
& sudo snap refresh
|
||||
} else {
|
||||
"⏳ (1/2) Querying application updates..."
|
||||
& winget upgrade
|
||||
Write-Progress "⏳ Installing updates..."
|
||||
" "
|
||||
"⏳ (2/2) Upgrading applications..."
|
||||
& winget upgrade --all
|
||||
Write-Progress -completed " "
|
||||
}
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✅ updates installed in $Elapsed sec."
|
||||
"✅ updates installed in $Elapsed sec"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user