mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-10 18:58:21 +02:00
Update install-updates.ps1
This commit is contained in:
parent
ad5557adc0
commit
49126fd1b4
@ -17,7 +17,17 @@ try {
|
||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||
|
||||
if ($IsLinux) {
|
||||
apt update && apt upgrade && apt autoremove && snap refresh
|
||||
"Step 1/4: Loading update infos..."
|
||||
sudo apt update
|
||||
|
||||
"Step 2/4: Installing updates..."
|
||||
sudo apt upgrade
|
||||
|
||||
"Step 3/4: Removing obsolete packages..."
|
||||
sudo apt autoremove
|
||||
|
||||
"Step 4/4: Refreshing snap packages..."
|
||||
sudo snap refresh
|
||||
} else {
|
||||
"Sorry, not supported yet"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user