mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-25 13:36:39 +01:00
Update install-updates.ps1
This commit is contained in:
parent
9e9f8a5534
commit
3cd545cbbb
@ -11,7 +11,6 @@
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
#Requires -RunAsAdministrator
|
||||
|
||||
try {
|
||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||
@ -29,10 +28,10 @@ try {
|
||||
"⏳ Step 4/4 - Upgrading installed Snap packages..."
|
||||
& sudo snap refresh
|
||||
} else {
|
||||
"⏳ Step 1/2 - Checking for application updates..."
|
||||
"⏳ Step 1/2 - Fetching update infos..."
|
||||
winget upgrade
|
||||
|
||||
"⏳ Step 2/2 - Upgrading application..."
|
||||
"⏳ Step 2/2 - Upgrading applications..."
|
||||
winget upgrade --all
|
||||
}
|
||||
|
||||
@ -42,4 +41,4 @@ try {
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user