fix(script): fix lsb_release typo and missing verb in show_env.sh (#17362)

## Description
This PR fixes a typo in comment text and a missing verb in error output
in `show_env.sh`.

## Details
1. Fixed typo in comment (`lsd_release` $\to$ `lsb_release`).
2. Added missing verb in fallback output string (`It NOT a Git repo`
$\to$ `It is NOT a Git repo`).

---------

Co-authored-by: ferkans-amir <amir.rezaei@tu-berlin.de>
This commit is contained in:
amir-rezaei
2026-07-24 16:00:37 +02:00
committed by GitHub
parent cc1eb6fb58
commit f4d1c9f8b2
2 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
Use this file as the local operating guide for the current codebase. Prefer the code and the current CLAUDE.md over any older convention or remembered project shape. Use this file as the local operating guide for the current codebase. Prefer the code and the current CLAUDE.md over any older convention or remembered project shape.
## Core stance ## Core Stance
- Treat legacy code as liability, not as a compatibility target. - Treat legacy code as liability, not as a compatibility target.
- Prefer deletion over shims, deprecated branches, wrapper APIs, and dual-track migration notes. - Prefer deletion over shims, deprecated branches, wrapper APIs, and dual-track migration notes.
- If old and new implementations coexist, converge to one path unless an external contract forces compatibility. - If old and new implementations coexist, converge to one path unless an external contract forces compatibility.
@@ -16,7 +16,7 @@ Use this file as the local operating guide for the current codebase. Prefer the
- Go: the repository also has a substantial Go module for servers, ingestion, parser/runtime, CLI, and supporting services. - Go: the repository also has a substantial Go module for servers, ingestion, parser/runtime, CLI, and supporting services.
- Runtime services commonly include MySQL/PostgreSQL, Redis, MinIO, and Elasticsearch/Infinity/OpenSearch depending on configuration. - Runtime services commonly include MySQL/PostgreSQL, Redis, MinIO, and Elasticsearch/Infinity/OpenSearch depending on configuration.
## Code layout to expect ## Code Layout to Expect
- `api/`: Python API server entrypoints, blueprints, services, and database code. - `api/`: Python API server entrypoints, blueprints, services, and database code.
- `rag/`: ingestion, retrieval, LLM integration, and graph RAG logic. - `rag/`: ingestion, retrieval, LLM integration, and graph RAG logic.
- `deepdoc/`: parsing and OCR. - `deepdoc/`: parsing and OCR.
@@ -45,13 +45,13 @@ Use this file as the local operating guide for the current codebase. Prefer the
- `docker/`: local and production compose files. - `docker/`: local and production compose files.
- `sdk/` and `test/`: SDK and automated tests. - `sdk/` and `test/`: SDK and automated tests.
## Go-specific rules ## Go-Specific Rules
- Treat `internal/ingestion`, `internal/parser`, and `internal/deepdoc` as actively refactored code. Prefer collapsing duplicate paths over preserving transitional wrappers. - Treat `internal/ingestion`, `internal/parser`, and `internal/deepdoc` as actively refactored code. Prefer collapsing duplicate paths over preserving transitional wrappers.
- Do not add or preserve deprecated Go APIs just to ease migration inside the repo. - Do not add or preserve deprecated Go APIs just to ease migration inside the repo.
- Remove commented-out Go code instead of leaving recovery notes in place. - Remove commented-out Go code instead of leaving recovery notes in place.
- Keep package comments and doc comments aligned with the current runtime path, not with migration history. - Keep package comments and doc comments aligned with the current runtime path, not with migration history.
## Working rules ## Working Rules
- Before editing, inspect the nearest code path that actually owns the behavior. - Before editing, inspect the nearest code path that actually owns the behavior.
- Keep changes small and local unless the task is explicitly a broader refactor. - Keep changes small and local unless the task is explicitly a broader refactor.
- Prefer one implementation path instead of preserving old and new versions side by side. - Prefer one implementation path instead of preserving old and new versions side by side.
@@ -94,7 +94,7 @@ bash build.sh --go
bash build.sh --all bash build.sh --all
``` ```
## Validation preference ## Validation Preference
- Run the narrowest relevant test, lint, or build command after a change. - Run the narrowest relevant test, lint, or build command after a change.
- For backend changes, prefer targeted pytest or ruff checks over full-suite runs. - For backend changes, prefer targeted pytest or ruff checks over full-suite runs.
- For frontend changes, prefer the touched-package lint, type-check, or test command. - For frontend changes, prefer the touched-package lint, type-check, or test command.

View File

@@ -6,7 +6,7 @@ get_distro_info() {
local distro_version=$(lsb_release -r -s 2>/dev/null) local distro_version=$(lsb_release -r -s 2>/dev/null)
local kernel_version=$(uname -r) local kernel_version=$(uname -r)
# If lsd_release is not available, try parsing the/etc/* - release file # If lsb_release is not available, try parsing the /etc/*-release file
if [ -z "$distro_id" ] || [ -z "$distro_version" ]; then if [ -z "$distro_id" ] || [ -z "$distro_version" ]; then
distro_id=$(grep '^ID=' /etc/*-release | cut -d= -f2 | tr -d '"') distro_id=$(grep '^ID=' /etc/*-release | cut -d= -f2 | tr -d '"')
distro_version=$(grep '^VERSION_ID=' /etc/*-release | cut -d= -f2 | tr -d '"') distro_version=$(grep '^VERSION_ID=' /etc/*-release | cut -d= -f2 | tr -d '"')
@@ -23,7 +23,7 @@ if git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
git_repo_name="(Can't get repo name)" git_repo_name="(Can't get repo name)"
fi fi
else else
git_repo_name="It NOT a Git repo" git_repo_name="It is NOT a Git repo"
fi fi
# get CPU type # get CPU type