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()
|
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
|
|
||||||
if ($IsLinux) {
|
if ($IsLinux) {
|
||||||
"⏳ Fetching update infos for installed Debian packages [step 1/4]..."
|
"⏳ (1/4) Fetching update infos for installed Debian packages..."
|
||||||
& sudo apt update
|
& sudo apt update
|
||||||
|
|
||||||
"⏳ Upgrading installed Debian packages [step 2/4]..."
|
"⏳ (2/4) Upgrading installed Debian packages..."
|
||||||
& sudo apt upgrade --yes
|
& sudo apt upgrade --yes
|
||||||
|
|
||||||
"⏳ Removing obsolete Debian packages [step 3/4]..."
|
"⏳ (3/4) Removing obsolete Debian packages..."
|
||||||
& sudo apt autoremove --yes
|
& sudo apt autoremove --yes
|
||||||
|
|
||||||
"⏳ Upgrading installed Snap packages [step 4/4]..."
|
"⏳ (4/4) Upgrading installed Snap packages..."
|
||||||
& sudo snap refresh
|
& sudo snap refresh
|
||||||
} else {
|
} else {
|
||||||
"Sorry, not supported yet"
|
"Sorry, not supported yet"
|
||||||
|
Loading…
Reference in New Issue
Block a user