Improved check-power.ps1 and install-updates.ps1

This commit is contained in:
Markus Fleschutz
2025-02-26 20:44:10 +01:00
parent 5390e1fa70
commit a0f0ed7814
2 changed files with 14 additions and 4 deletions

View File

@ -29,7 +29,7 @@ try {
} elseif ($percent -ge 95) {
$reply = "✅ Battery full ($percent%, power scheme is '$powerScheme')"
} else {
$reply = "✅ Battery charging ($percent%, power scheme is '$powerScheme')"
$reply = "✅ Battery $percent% and charging (power scheme is '$powerScheme')"
}
} else { # must be offline
if (($remaining -eq 0) -and ($percent -ge 60)) {