mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-05-10 02:24:58 +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()
|
$stopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
|
|
||||||
if ($IsLinux) {
|
if ($IsLinux) {
|
||||||
"⏳ (1/5) Checking update requirements..."
|
"⏳ (1/5) Checking requirements..."
|
||||||
|
& "$PSScriptRoot/check-power.ps1"
|
||||||
& "$PSScriptRoot/check-smart-devices.ps1"
|
& "$PSScriptRoot/check-smart-devices.ps1"
|
||||||
& "$PSScriptRoot/check-drive-space.ps1" /
|
& "$PSScriptRoot/check-drive-space.ps1" /
|
||||||
& "$PSScriptRoot/check-swap-space.ps1"
|
& "$PSScriptRoot/check-swap-space.ps1"
|
||||||
@ -45,9 +46,9 @@ try {
|
|||||||
Write-Progress "⏳ Installing updates..."
|
Write-Progress "⏳ Installing updates..."
|
||||||
& sudo softwareupdate -i -a
|
& sudo softwareupdate -i -a
|
||||||
Write-Progress -completed " "
|
Write-Progress -completed " "
|
||||||
} else {
|
} else { # Windows:
|
||||||
# Windows:
|
"⏳ (1/2) Checking requirements..."
|
||||||
"⏳ (1/2) Checking update requirements..."
|
& "$PSScriptRoot/check-power.ps1"
|
||||||
& "$PSScriptRoot/check-smart-devices.ps1"
|
& "$PSScriptRoot/check-smart-devices.ps1"
|
||||||
& "$PSScriptRoot/check-drive-space.ps1" C
|
& "$PSScriptRoot/check-drive-space.ps1" C
|
||||||
& "$PSScriptRoot/check-swap-space.ps1"
|
& "$PSScriptRoot/check-swap-space.ps1"
|
||||||
|
Loading…
Reference in New Issue
Block a user