Skip to content

Commit 6b7b676

Browse files
committed
fix: improve dev-build-ai-plugin working directory handling
Fix directory navigation in Makefile to ensure bin directory creation and plugin binary copying works correctly.
1 parent 3f00c3d commit 6b7b676

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/make/run.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ build-ai-plugin:
3030
dev-build-ai-plugin:
3131
@echo "🔧 Building AI plugin for development..."
3232
@if [ -d "$(AI_PLUGIN_DIR)" ]; then \
33-
cd $(AI_PLUGIN_DIR) && make build; \
33+
cd $(AI_PLUGIN_DIR) && make build && cd - > /dev/null; \
3434
mkdir -p bin; \
35-
cp $(AI_PLUGIN_DIR)/bin/atest-ext-ai bin/; \
35+
cp -f $(AI_PLUGIN_DIR)/bin/atest-ext-ai bin/atest-ext-ai; \
3636
if [ -f ~/.config/atest/bin/atest-ext-ai ]; then \
3737
mv ~/.config/atest/bin/atest-ext-ai ~/.config/atest/bin/atest-ext-ai.backup; \
3838
echo "✅ Backed up system version, now using development version"; \

0 commit comments

Comments
 (0)