mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-08 00:54:04 +01:00
Update check-apps.ps1 and list-updates.ps1
This commit is contained in:
parent
fde2fff232
commit
b6ce7a9758
@ -14,7 +14,8 @@
|
||||
|
||||
try {
|
||||
if ($IsLinux) {
|
||||
# TODO
|
||||
$NumSnaps = (snap list).Count - 1
|
||||
Write-Host "✅ $($NumSnaps) snaps installed"
|
||||
} else {
|
||||
Write-Progress "⏳ Querying installed apps and updates..."
|
||||
$Apps = Get-AppxPackage
|
||||
@ -34,4 +35,4 @@ try {
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ try {
|
||||
& sudo apt update
|
||||
& sudo apt list --upgradable
|
||||
"⏳ (2/2) Querying Snap updates..."
|
||||
sudo snap refresh --list
|
||||
& sudo snap refresh --list
|
||||
} else {
|
||||
" "
|
||||
Write-Progress "⏳ Querying available software updates..."
|
||||
|
Loading…
Reference in New Issue
Block a user