Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

Fix final shellcheck violations identified in CI

LearningCircuit232ce0f3537d
diff --git a/.github/workflows/ai-code-reviewer.yml b/.github/workflows/ai-code-reviewer.yml
index 3b341a2ef7..28fa12de19 100644
--- a/.github/workflows/ai-code-reviewer.yml
+++ b/.github/workflows/ai-code-reviewer.yml
@@ -46,7 +46,7 @@ jobs:
run: |
# Run the AI reviewer and save response to file
echo "Running AI code review..."
- AI_RESPONSE=$(cat diff.txt | bash ai-reviewer.sh)
+ AI_RESPONSE=$(bash ai-reviewer.sh < diff.txt)
# Save response for debugging (only in debug mode)
if [ "$DEBUG_MODE" = "true" ]; then
diff --git a/.github/workflows/docker-multiarch-test.yml b/.github/workflows/docker-multiarch-test.yml
index 1d7fe00c13..57ba5b833c 100644
--- a/.github/workflows/docker-multiarch-test.yml
+++ b/.github/workflows/docker-multiarch-test.yml
@@ -118,19 +118,25 @@ jobs:
steps:
- name: Summary
run: |
- echo "## Multi-Architecture Build Test Results" >> "$GITHUB_STEP_SUMMARY"
- echo "" >> "$GITHUB_STEP_SUMMARY"
+ {
+ echo "## Multi-Architecture Build Test Results"
+ echo ""
+ } >> "$GITHUB_STEP_SUMMARY"
if [ "${{ needs.test-multiarch-build.result }}" == "success" ]; then
- echo "✅ **All platforms built and tested successfully!**" >> "$GITHUB_STEP_SUMMARY"
- echo "" >> "$GITHUB_STEP_SUMMARY"
- echo "### Tested Platforms:" >> "$GITHUB_STEP_SUMMARY"
- echo "- linux/amd64 ✅" >> "$GITHUB_STEP_SUMMARY"
- echo "- linux/arm64 ✅" >> "$GITHUB_STEP_SUMMARY"
- echo "" >> "$GITHUB_STEP_SUMMARY"
- echo "The Docker image is ready for multi-architecture deployment." >> "$GITHUB_STEP_SUMMARY"
+ {
+ echo "✅ **All platforms built and tested successfully!**"
+ echo ""
+ echo "### Tested Platforms:"
+ echo "- linux/amd64 ✅"
+ echo "- linux/arm64 ✅"
+ echo ""
+ echo "The Docker image is ready for multi-architecture deployment."
+ } >> "$GITHUB_STEP_SUMMARY"
else
- echo "❌ **Build or tests failed**" >> "$GITHUB_STEP_SUMMARY"
- echo "" >> "$GITHUB_STEP_SUMMARY"
- echo "Please check the logs above for details." >> "$GITHUB_STEP_SUMMARY"
+ {
+ echo "❌ **Build or tests failed**"
+ echo ""
+ echo "Please check the logs above for details."
+ } >> "$GITHUB_STEP_SUMMARY"
fi
diff --git a/.github/workflows/infrastructure-tests.yml b/.github/workflows/infrastructure-tests.yml
index add6495b9f..19c71636f9 100644
--- a/.github/workflows/infrastructure-tests.yml
+++ b/.github/workflows/infrastructure-tests.yml
@@ -37,7 +37,7 @@ jobs:
- name: Run Python infrastructure tests
run: |
docker run --rm \
- -v $PWD:/app \
+ -v "$PWD":/app \
-w /app \
ldr-test \
sh -c "cd /app && python -m pytest tests/infrastructure_tests/test_*.py -v --color=yes --no-header -rN"
diff --git a/.github/workflows/news-tests.yml b/.github/workflows/news-tests.yml
index d1285442cd..cdc0d0760c 100644
--- a/.github/workflows/news-tests.yml
+++ b/.github/workflows/news-tests.yml
@@ -61,7 +61,7 @@ jobs:
echo $! > server.pid
# Wait for server
- for i in {1..30}; do
+ for _ in {1..30}; do
if curl -f http://localhost:5000/api/v1/health 2>/dev/null; then
echo "Server ready"
break
diff --git a/.github/workflows/sync-main-to-dev.yml b/.github/workflows/sync-main-to-dev.yml
index 702c296f1a..bf90931e23 100644
--- a/.github/workflows/sync-main-to-dev.yml
+++ b/.github/workflows/sync-main-to-dev.yml
@@ -75,8 +75,6 @@ jobs:
if: steps.check_sync.outputs.sync_needed == 'true'
id: merge_attempt
run: |
- BRANCH_NAME="${{ steps.create_branch.outputs.branch_name }}"
-
# Try to merge dev into the sync branch
if git merge origin/dev --no-edit; then
echo "merge_conflicts=false" >> "$GITHUB_OUTPUT"