no-mistakes(document): Correct rebuild.sh npm guard comment
This commit is contained in:
1 parent
877ee5d163
commit
78f2928132
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user