mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-16 11:40:53 +01:00
Update install-updates.ps1
This commit is contained in:
parent
ae4298b114
commit
ddb7aa1dc3
@ -17,16 +17,16 @@ try {
|
||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||
|
||||
if ($IsLinux) {
|
||||
"⏳ Fetching update infos for installed Debian packages [step 1/4]..."
|
||||
"⏳ (1/4) Fetching update infos for installed Debian packages..."
|
||||
& sudo apt update
|
||||
|
||||
"⏳ Upgrading installed Debian packages [step 2/4]..."
|
||||
"⏳ (2/4) Upgrading installed Debian packages..."
|
||||
& sudo apt upgrade --yes
|
||||
|
||||
"⏳ Removing obsolete Debian packages [step 3/4]..."
|
||||
"⏳ (3/4) Removing obsolete Debian packages..."
|
||||
& sudo apt autoremove --yes
|
||||
|
||||
"⏳ Upgrading installed Snap packages [step 4/4]..."
|
||||
"⏳ (4/4) Upgrading installed Snap packages..."
|
||||
& sudo snap refresh
|
||||
} else {
|
||||
"Sorry, not supported yet"
|
||||
|
Loading…
Reference in New Issue
Block a user