Update check-swap-space.ps1

This commit is contained in:
Markus Fleschutz 2021-09-11 11:19:22 +02:00 committed by GitHub
parent 9872ba3b16
commit a8e9bfe88f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,10 +33,10 @@ try {
exit 1
}
if ($Free -lt $MinLevel) {
write-warning "Swap space has only $Free GB left to use! ($Used GB out of $Total GB in use, minimum is $MinLevel GB)"
write-warning "Swap space has only $Free GB left to use! ($Used of $Total GB used, minimum is $MinLevel GB)"
exit 1
}
"✔️ $Free GB left on swap space ($Used GB of $Total GB used)"
"✔️ $Free GB left on swap space ($Used of $Total GB used)"
exit 0
} catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"