Update check-pending-reboot.ps1 and install-updates.ps1

This commit is contained in:
Markus Fleschutz
2024-04-19 16:32:40 +02:00
parent 3dba184d19
commit 00d0fb333e
2 changed files with 6 additions and 4 deletions

View File

@ -24,6 +24,7 @@ try {
if ($IsLinux) {
"⏳ (1/5) Checking requirements..."
& "$PSScriptRoot/check-smart-devices.ps1"
& "$PSScriptRoot/check-drive-space.ps1" /
& "$PSScriptRoot/check-swap-space.ps1"
& "$PSScriptRoot/check-pending-reboot.ps1"
@ -47,6 +48,7 @@ try {
} else {
# Windows:
"⏳ (1/2) Checking requirements..."
& "$PSScriptRoot/check-smart-devices.ps1"
& "$PSScriptRoot/check-drive-space.ps1" C
& "$PSScriptRoot/check-swap-space.ps1"
& "$PSScriptRoot/check-pending-reboot.ps1"
@ -57,7 +59,7 @@ try {
& winget upgrade --all --include-unknown
}
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✅ Installed updates in $elapsed sec"
"✅ Installed updates in $elapsed sec."
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"