Skip to content
This repository was archived by the owner on Nov 26, 2026. It is now read-only.

fix: correct typos in start script module name and README script name - #27

Open
PttCodingMan wants to merge 1 commit into
mainfrom
fix/script-typos
Open

PttCodingMan wants to merge 1 commit into
mainfrom
fix/script-typos

Conversation

@PttCodingMan

Copy link
Copy Markdown
Member

這個 PR 的目的 / Purpose of this PR

兩處拼字錯誤,會讓使用者照文件或腳本操作時失敗:

  1. scripts/start.sh(實際檔案為 .cc/scripts/start.sh,scripts 是指向 .cc/scripts 的 symlink)執行 python -m openbbs_middelware.main,模組名稱拼錯(middelware),會出現 No module named openbbs_middelware。改成 openbbs_middleware。
  2. README.md 的 Develop 章節寫 ./scripts/clone_projet.sh,但實際檔案是 scripts/clone_project.sh。

Two typos that make the documented/scripted steps fail:

  1. scripts/start.sh (actually .cc/scripts/start.sh; scripts is a symlink to .cc/scripts) runs python -m openbbs_middelware.main, a misspelled module name, which fails with No module named openbbs_middelware. Changed to openbbs_middleware.
  2. The Develop section of README.md says ./scripts/clone_projet.sh, but the file is scripts/clone_project.sh.

驗證 / Verification

  • grep -rn "middelware\|clone_projet" . --exclude-dir=.git:修正後無結果

  • ls scripts/clone_project.sh:檔案存在

  • bash -n scripts/start.sh:語法正確

  • 未實際啟動伺服器(start.sh 另需 production.ini 與 MongoDB)。

  • grep -rn "middelware\|clone_projet" . --exclude-dir=.git: no matches after the fix.

  • ls scripts/clone_project.sh: the file exists.

  • bash -n scripts/start.sh: syntax OK.

  • The server was not started (start.sh also needs a production.ini and MongoDB).

相關的 issue / Related Issues

無 / None

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant