no-mistakes(document): Correct rebuild.sh npm guard comment

This commit is contained in:
Lap Tran committed 2026-11-08 18:39:19 -05:00
1 parent 877ee5d163
commit 78f2928132
1 file changed
+2 -2
+2 -2
View File
@@ -19,8 +19,8 @@ fi
# Remove retired npm OpenCode installs if an older rebuild installed them:
# the `@opencode-ai/cli` beta and the older `opencode-ai` CLI. The Homebrew
# `opencode` formula declared in configuration.nix is now the only OpenCode
# install, unpinned so it tracks the latest release. Local check only, so an
# offline rebuild skips this instead of failing.
# install, unpinned so it tracks the latest release. The guard is a local check
# for npm, so a rebuild without npm skips this instead of failing.
NPM=/opt/homebrew/bin/npm
if [ -x "$NPM" ] && npm_root="$("$NPM" root -g 2>/dev/null)"; then
for pkg in @opencode-ai/cli opencode-ai; do