From f8cfad314eb301a344864517a47a521b1c54ec94 Mon Sep 17 00:00:00 2001 From: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Date: Fri, 17 Feb 2023 20:09:02 +0000 Subject: [PATCH] Minor improvment suggested by ChatGPT <3 --- Dell_iDRAC_fan_controller.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dell_iDRAC_fan_controller.sh b/Dell_iDRAC_fan_controller.sh index 12f5176..97521da 100644 --- a/Dell_iDRAC_fan_controller.sh +++ b/Dell_iDRAC_fan_controller.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Enable strict bash mode to stop the script if an uninitialized variable is used, if a command fails, or if a command with a pipe fails +set -euo pipefail + # Define global functions # This function applies Dell's default dynamic fan control profile function apply_Dell_fan_control_profile () {