Check if monitor.conf exists before sourcing to prevent errors

This commit is contained in:
2025-10-08 23:52:47 +01:00
parent dd0abcf958
commit c151bb796d
+2 -1
View File
@@ -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