Updated the Markdown manuals

This commit is contained in:
Markus Fleschutz
2024-05-19 10:25:56 +02:00
parent c24030c909
commit 439fbf5bfa
621 changed files with 2430 additions and 1289 deletions

View File

@@ -18,9 +18,10 @@ Example
-------
```powershell
PS> ./install-updates.ps1
(1/2) Checking drive and swap space...
Drive C: uses 56% of 1TB · 441GB free
Swap space uses 2% of 1GB · 1GB free
(1/2) Checking requirements...
Drive C: has 441 GB free (56% of 1TB used)
Swap space has 1GB free (2% of 1GB used)
No pending system reboot
@@ -48,9 +49,10 @@ Script Content
NOTE: Use the script 'list-updates.ps1' to list the latest software updates before.
.EXAMPLE
PS> ./install-updates.ps1
⏳ (1/2) Checking drive and swap space...
✅ Drive C: uses 56% of 1TB · 441GB free
✅ Swap space uses 2% of 1GB · 1GB free
⏳ (1/2) Checking requirements...
✅ Drive C: has 441 GB free (56% of 1TB used)
✅ Swap space has 1GB free (2% of 1GB used)
✅ No pending system reboot
⏳ (2/2) Installing updates from winget and Microsoft Store...
...
@@ -64,9 +66,12 @@ try {
$stopWatch = [system.diagnostics.stopwatch]::startNew()
if ($IsLinux) {
"⏳ (1/5) Checking drive and swap space..."
"⏳ (1/5) Checking requirements..."
& "$PSScriptRoot/check-smart-devices.ps1"
& "$PSScriptRoot/check-drive-space.ps1" /
& "$PSScriptRoot/check-swap-space.ps1"
& "$PSScriptRoot/check-pending-reboot.ps1"
Start-Sleep -seconds 3
""
"⏳ (2/5) Querying latest package information..."
& sudo apt update
@@ -84,16 +89,20 @@ try {
& sudo softwareupdate -i -a
Write-Progress -completed " "
} else {
"⏳ (1/2) Checking drive and swap space..."
# 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"
Start-Sleep -seconds 3
""
"⏳ (2/2) Installing updates from winget and Microsoft Store..."
""
& winget upgrade --all --include-unknown
}
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✅ Installed updates in $elapsed sec"
"✅ Updates installed in $($elapsed)s."
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
@@ -101,4 +110,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 using the comment-based help of install-updates.ps1 as of 03/27/2024 17:36:27)*
*(generated by convert-ps2md.ps1 using the comment-based help of install-updates.ps1 as of 05/19/2024 10:25:20)*