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