- Refactored code to improve readability and maintainability
- Added error handling for when Temper USB is not found
- Updated variable names for clarity
This commit adds a new bash script called check-env-temp.sh that monitors the internal temperature of the system and returns an exit code based on whether it is within acceptable limits. The script takes in command line arguments for setting warning and critical thresholds, and outputs a message indicating whether the temperature is OK, Warning or Critical along with performance data.