Files
codex/scripts/install
Eric Traut 53cd1894aa Fix Node launcher detection in the standalone installer (#62120)
## Why

Searching the entire executable for Node shebang text can cause the
installer to mistake a native Codex binary for an npm or Bun launcher.

## What changed

Require an exact first-line match for `#!/usr/bin/env node` when
identifying an existing Codex executable as npm- or Bun-managed.

## Testing

Cover a Node launcher and an ELF fixture containing the same shebang
text. Verify that only the launcher triggers the npm warning and the
shell profile update when the install directory is already on `PATH`.

GitOrigin-RevId: 3566a41f2431684aafaf4332a9217ab4f7ceb2a5
2026-11-17 22:43:51 +00:00
..