Skip to content

Commit 8fcdf14

Browse files
committed
Updated check-drive-space.ps1 and install-updates.ps1
1 parent 8aac02c commit 8fcdf14

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

scripts/check-drive-space.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Specifies the minimum level in bytes (10GB by default)
1010
.EXAMPLE
1111
PS> ./check-drive-space.ps1 C
12-
✅ Drive C: uses 56%, 442GB free of 999GB
12+
✅ Drive C: uses 56% of 1TB · 442GB free
1313
.LINK
1414
https://github.com/fleschutz/PowerShell
1515
.NOTES
@@ -49,7 +49,7 @@ try {
4949
Write-Host "⚠️ Drive $driveName with $(Bytes2String $total) is nearly full, $(Bytes2String $free) free"
5050
} else {
5151
[int]$percent = ($used * 100) / $total
52-
Write-Host "✅ Drive $driveName uses $percent%, $(Bytes2String $free) free of $(Bytes2String $total)"
52+
Write-Host "✅ Drive $driveName uses $percent% of $(Bytes2String $total) · $(Bytes2String $free) free"
5353
}
5454
exit 0 # success
5555
} catch {

scripts/install-updates.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
.EXAMPLE
88
PS> ./install-updates.ps1
99
⏳ (1/2) Checking drive space...
10-
✅ Drive C: uses 56%, 441GB free of 999GB
10+
✅ Drive C: uses 56% of 1TB · 441GB free
11+
1112
⏳ (2/2) Installing updates from winget and Microsoft Store...
1213
...
1314
.LINK
@@ -22,7 +23,7 @@ try {
2223
if ($IsLinux) {
2324
"⏳ (1/5) Checking drive space..."
2425
& "$PSScriptRoot/check-drive-space.ps1" /
25-
26+
""
2627
"⏳ (2/5) Querying latest package information..."
2728
& sudo apt update
2829

@@ -41,7 +42,7 @@ try {
4142
} else {
4243
"⏳ (1/2) Checking drive space..."
4344
& "$PSScriptRoot/check-drive-space.ps1" C
44-
45+
""
4546
"⏳ (2/2) Installing updates from winget and Microsoft Store..."
4647
""
4748
& winget upgrade --all --include-unknown

0 commit comments

Comments
 (0)