mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-24 02:35:40 +02:00
Updated the manuals
This commit is contained in:
@@ -18,8 +18,12 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./install-updates.ps1
|
||||
⏳ (1/2) Checking drive space...
|
||||
✅ Drive C: uses 56%, 441GB free of 999GB
|
||||
⏳ (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...
|
||||
...
|
||||
|
||||
@@ -44,8 +48,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 space...
|
||||
✅ Drive C: uses 56%, 441GB free of 999GB
|
||||
⏳ (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...
|
||||
...
|
||||
.LINK
|
||||
@@ -58,9 +64,10 @@ 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
|
||||
|
||||
@@ -77,9 +84,10 @@ 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..."
|
||||
""
|
||||
& winget upgrade --all --include-unknown
|
||||
@@ -93,4 +101,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of install-updates.ps1 as of 01/25/2024 13:58:38)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of install-updates.ps1 as of 03/27/2024 17:36:27)*
|
||||
|
Reference in New Issue
Block a user