mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-15 11:10:54 +01:00
Update list-updates.ps1
This commit is contained in:
parent
2d99ce0b3b
commit
2b8d31a13b
@ -1,8 +1,8 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Lists software updates
|
||||
Lists updates
|
||||
.DESCRIPTION
|
||||
This PowerShell script lists available updates for the local machine.
|
||||
This PowerShell script lists available software updates for the local machine.
|
||||
Use "install-updates.ps1" to install the listed updates.
|
||||
.EXAMPLE
|
||||
PS> ./list-updates
|
||||
@ -20,9 +20,11 @@ try {
|
||||
"⏳ (2/2) Querying Snap updates... (use install-updates.ps1 to install them)"
|
||||
sudo snap refresh --list
|
||||
} else {
|
||||
"⏳ Querying application updates... (use install-updates.ps1 to install them)"
|
||||
Write-Progress "⏳ Querying available software updates..."
|
||||
" "
|
||||
& winget upgrade
|
||||
Write-Progress -completed "."
|
||||
Write-Host "(use install-updates.ps1 to install these updates)"
|
||||
}
|
||||
exit 0 # success
|
||||
} catch {
|
||||
|
Loading…
Reference in New Issue
Block a user