Update check-drive-space.ps1 and check-swap-space.ps1

This commit is contained in:
Markus Fleschutz 2021-10-19 09:27:10 +02:00
parent e9bfd8cf10
commit 5e5d359049
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ try {
write-warning "Drive $Drive has only $Free GB left to use! ($Used of $Total GB used, minimum is $MinLevel GB)"
exit 1
}
"✔️ $Free GB left on drive $Drive ($Used of $Total GB used)"
"✔️ Drive $Drive has $Free GB left ($Used of $Total GB used)"
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"

View File

@ -39,7 +39,7 @@ try {
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 for swap space ($Used of $Total GB used)"
"✔️ Swap space has $Free GB left ($Used of $Total GB used)"
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"