This commit is contained in:
Markus Fleschutz 2023-08-05 16:20:52 +02:00
parent 08c8d62f5a
commit 33a42c2547

View File

@ -38,7 +38,7 @@ try {
Write-Progress -completed "."
foreach($Drive in $Drives) {
$Details = (Get-PSDrive $Drive.Name)
if ($IsLinx) { $ID = $Drive.Name } else { $ID = $Drive.Name + ":" }
if ($IsLinux) { $ID = $Drive.Name } else { $ID = $Drive.Name + ":" }
[int64]$Free = $Details.Free
[int64]$Used = $Details.Used
[int64]$Total = ($Used + $Free)
@ -58,4 +58,4 @@ try {
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}
}