From 85944346d9dbbb222a1b217719e628b9259c4dc0 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Wed, 3 Jan 2024 20:12:23 +0000 Subject: [PATCH 1/2] feat: Add configuration file for project settings --- config_file | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 config_file diff --git a/config_file b/config_file new file mode 100644 index 00000000..69e50a8d --- /dev/null +++ b/config_file @@ -0,0 +1,7 @@ +# Set environment variables +export PROJECT_PATH="/path/to/project" +export DEPENDENCY_PATH="/path/to/dependencies" + +# Set other configuration settings +export DEBUG_MODE="true" +export LOG_LEVEL="INFO" From 5969b82fe79f17a185dc1d04749f06ee249b6b46 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Wed, 3 Jan 2024 20:13:17 +0000 Subject: [PATCH 2/2] feat: Updated Makefile --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 32495751..2a9a0537 100644 --- a/Makefile +++ b/Makefile @@ -9,9 +9,9 @@ init: @echo "Installing essential tools..." sudo apt-get install -y curl git # Check for the existence of the configuration file before using it - @if test ! -f 'config_file'; then \ - echo "Error: Configuration file not found"; \ - exit 1; \ + @if test ! -r 'config_file'; then \ + echo "Error: Configuration file could not be read"; \ + exit 2; \ fi # If the configuration file exists, source it @source config_file