From 1498b30abfeea4b5ff03cb7318a03146955584cd Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 7 Feb 2024 17:31:48 +0100 Subject: [PATCH] Update install-updates.ps1 --- scripts/install-updates.ps1 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/install-updates.ps1 b/scripts/install-updates.ps1 index cb91cdf8..b36b670c 100755 --- a/scripts/install-updates.ps1 +++ b/scripts/install-updates.ps1 @@ -6,8 +6,9 @@ NOTE: Use the script 'list-updates.ps1' to list the latest software updates before. .EXAMPLE PS> ./install-updates.ps1 - ⏳ (1/2) Checking drive space... + ⏳ (1/2) Checking drive and swap space... ✅ Drive C: uses 56% of 1TB · 441GB free + ✅ Swap space uses 2% of 1GB · 1GB free ⏳ (2/2) Installing updates from winget and Microsoft Store... ... @@ -21,8 +22,9 @@ try { $stopWatch = [system.diagnostics.stopwatch]::startNew() if ($IsLinux) { - "⏳ (1/5) Checking drive space..." + "⏳ (1/5) Checking drive and swap space..." & "$PSScriptRoot/check-drive-space.ps1" / + & "$PSScriptRoot/check-swap-space.ps1" "" "⏳ (2/5) Querying latest package information..." & sudo apt update @@ -40,8 +42,9 @@ try { & sudo softwareupdate -i -a Write-Progress -completed " " } else { - "⏳ (1/2) Checking drive space..." + "⏳ (1/2) Checking drive and swap space..." & "$PSScriptRoot/check-drive-space.ps1" C + & "$PSScriptRoot/check-swap-space.ps1" "" "⏳ (2/2) Installing updates from winget and Microsoft Store..." ""