mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-10 13:27:41 +02:00
Improve the scripts
This commit is contained in:
@ -15,7 +15,11 @@ try {
|
||||
exit 0
|
||||
}
|
||||
|
||||
write-host -foregroundColor green "OK - CPU has $Temp °C"
|
||||
if ($Temp -gt "80") {
|
||||
write-warning "CPU has $Temp °C!"
|
||||
} else {
|
||||
write-host -foregroundColor green "OK - CPU has $Temp °C"
|
||||
}
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Reference in New Issue
Block a user