mirror of
https://github.com/gregtwallace/apc-p15-tool.git
synced 2025-05-24 22:42:43 +00:00
It was possible for scanner.Scan() to block indefinitely if the UPS never returned the expected prompt regex pattern. This could occur with a UPS using a prompt format I'm not aware of, or if the UPS responds in a non-standard way. This change ensures that Scan() is aborted after a fixed amount of blocking time and the shell cmd function accordingly returns an error. Some error messages, comments, and var names are also updated for clarity. |
||
---|---|---|
.. | ||
apcssh | ||
app | ||
pkcs15 | ||
tools |