From c151bb796db0c8a8fb7dc46a44a7063187b9b08a Mon Sep 17 00:00:00 2001 From: Fil Sapia Date: Wed, 8 Oct 2025 23:52:47 +0100 Subject: [PATCH] Check if monitor.conf exists before sourcing to prevent errors --- hdr-helper | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hdr-helper b/hdr-helper index 56f8f7b..94d1b85 100755 --- a/hdr-helper +++ b/hdr-helper @@ -141,7 +141,8 @@ fi import_config() { - if source "$CONFIG_FILE"; then + if [[ -f "$CONFIG_FILE" ]]; then + source $CONFIG_FILE if [[ $MONITOR == "" ]] || [[ $NATIVE_RES == "" ]] || [[ $TEMP_RES == "" ]]; then echo "Error: monitor.conf has not been configured." exit -2