@@ -3,7 +3,7 @@ set -euo pipefail
33
44# Function to check if a command exists
55command_exists () {
6- command -v " $1 " > /dev/null 2>&1
6+ command -v " $1 " > /dev/null 2>&1
77}
88
99echo " --------------------------------"
@@ -12,20 +12,20 @@ echo "Workspace: $AIDER_START_DIRECTORY"
1212echo " --------------------------------"
1313
1414function install_aider() {
15- echo " pipx installing..."
16- sudo apt-get install -y pipx
17- echo " pipx installed!"
18- pipx ensurepath
19- echo $PATH
20- mkdir -p " $AIDER_START_DIRECTORY /.local/bin"
21- export PATH=" $HOME /.local/bin:$AIDER_START_DIRECTORY /.local/bin:$PATH " # ensure in current shell too
22-
23- if ! command_exists aider; then
24- echo " Installing Aider via pipx..."
25- pipx install --force aider-install
26- aider-install
27- fi
28- echo " Aider installed: $( aider --version || echo ' check failed the Aider module insatllation failed' ) "
15+ echo " pipx installing..."
16+ sudo apt-get install -y pipx
17+ echo " pipx installed!"
18+ pipx ensurepath
19+ echo $PATH
20+ mkdir -p " $AIDER_START_DIRECTORY /.local/bin"
21+ export PATH=" $HOME /.local/bin:$AIDER_START_DIRECTORY /.local/bin:$PATH " # ensure in current shell too
22+
23+ if ! command_exists aider; then
24+ echo " Installing Aider via pipx..."
25+ pipx install --force aider-install
26+ aider-install
27+ fi
28+ echo " Aider installed: $( aider --version || echo ' check failed the Aider module insatllation failed' ) "
2929}
3030
3131function setup_system_prompt() {
@@ -39,21 +39,19 @@ function setup_system_prompt() {
3939 fi
4040}
4141
42- function configure_aider_settings(){
42+ function configure_aider_settings() {
4343 if [ " ${ARG_IMPLEMENT_MCP} " = " true" ]; then
4444 echo " Configuring Aider to report tasks via Coder MCP..."
4545
4646 mkdir -p " $HOME /.config/aider"
4747
48- echo " $ARG_AIDER_CONFIG " > " $HOME /.config/aider/.aider.conf.yml"
48+ echo " $ARG_AIDER_CONFIG " > " $HOME /.config/aider/.aider.conf.yml"
4949 echo " Added Coder MCP extension to Aider config.yml"
50- else
50+ else
5151 printf " MCP Server not Implemented"
5252 fi
5353}
5454
55-
56-
5755install_aider
5856setup_system_prompt
59- configure_aider_settings
57+ configure_aider_settings
0 commit comments