mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-23 02:18:21 +02:00
Update check-apps.ps1 and list-updates.ps1
This commit is contained in:
parent
fde2fff232
commit
b6ce7a9758
@ -14,7 +14,8 @@
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if ($IsLinux) {
|
if ($IsLinux) {
|
||||||
# TODO
|
$NumSnaps = (snap list).Count - 1
|
||||||
|
Write-Host "✅ $($NumSnaps) snaps installed"
|
||||||
} else {
|
} else {
|
||||||
Write-Progress "⏳ Querying installed apps and updates..."
|
Write-Progress "⏳ Querying installed apps and updates..."
|
||||||
$Apps = Get-AppxPackage
|
$Apps = Get-AppxPackage
|
||||||
|
@ -18,7 +18,7 @@ try {
|
|||||||
& sudo apt update
|
& sudo apt update
|
||||||
& sudo apt list --upgradable
|
& sudo apt list --upgradable
|
||||||
"⏳ (2/2) Querying Snap updates..."
|
"⏳ (2/2) Querying Snap updates..."
|
||||||
sudo snap refresh --list
|
& sudo snap refresh --list
|
||||||
} else {
|
} else {
|
||||||
" "
|
" "
|
||||||
Write-Progress "⏳ Querying available software updates..."
|
Write-Progress "⏳ Querying available software updates..."
|
||||||
|
Loading…
Reference in New Issue
Block a user