Secured every user-accessible variable with double quotes

This commit is contained in:
Tigerblue77 2025-10-26 19:31:48 +00:00
parent b2ec8afc67
commit b92b18159a
3 changed files with 19 additions and 19 deletions

View file

@ -98,7 +98,7 @@ function graceful_exit() {
apply_Dell_fan_control_profile
# Reset third-party PCIe card cooling response to Dell default depending on the user's choice at startup
if ! $KEEP_THIRD_PARTY_PCIE_CARD_COOLING_RESPONSE_STATE_ON_EXIT; then
if ! "$KEEP_THIRD_PARTY_PCIE_CARD_COOLING_RESPONSE_STATE_ON_EXIT"; then
enable_third_party_PCIe_card_Dell_default_cooling_response
fi
@ -124,8 +124,8 @@ function get_Dell_server_model() {
}
# Define functions to check if CPU 1 and CPU 2 temperatures are above the threshold
function CPU1_OVERHEATING() { [ $CPU1_TEMPERATURE -gt $CPU_TEMPERATURE_THRESHOLD ]; }
function CPU2_OVERHEATING() { [ $CPU2_TEMPERATURE -gt $CPU_TEMPERATURE_THRESHOLD ]; }
function CPU1_OVERHEATING() { [ $CPU1_TEMPERATURE -gt "$CPU_TEMPERATURE_THRESHOLD" ]; }
function CPU2_OVERHEATING() { [ $CPU2_TEMPERATURE -gt "$CPU_TEMPERATURE_THRESHOLD" ]; }
function print_error() {
local -r ERROR_MESSAGE="$1"