mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-05-09 18:14:36 +02:00
Updated install-updates.ps1
This commit is contained in:
parent
3f0ddc41a0
commit
8c780998b6
@ -23,7 +23,8 @@ try {
|
||||
$stopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||
|
||||
if ($IsLinux) {
|
||||
"⏳ (1/5) Checking update requirements..."
|
||||
"⏳ (1/5) Checking requirements..."
|
||||
& "$PSScriptRoot/check-power.ps1"
|
||||
& "$PSScriptRoot/check-smart-devices.ps1"
|
||||
& "$PSScriptRoot/check-drive-space.ps1" /
|
||||
& "$PSScriptRoot/check-swap-space.ps1"
|
||||
@ -45,9 +46,9 @@ try {
|
||||
Write-Progress "⏳ Installing updates..."
|
||||
& sudo softwareupdate -i -a
|
||||
Write-Progress -completed " "
|
||||
} else {
|
||||
# Windows:
|
||||
"⏳ (1/2) Checking update requirements..."
|
||||
} else { # Windows:
|
||||
"⏳ (1/2) Checking requirements..."
|
||||
& "$PSScriptRoot/check-power.ps1"
|
||||
& "$PSScriptRoot/check-smart-devices.ps1"
|
||||
& "$PSScriptRoot/check-drive-space.ps1" C
|
||||
& "$PSScriptRoot/check-swap-space.ps1"
|
||||
|
Loading…
Reference in New Issue
Block a user