Skip to content

Conversation

@drtraderai-glitch
Copy link

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +19 to +21
nvm_alias_default_output="$(nvm alias --no-colors default 2>/dev/null || true)"
if [ -n "${nvm_alias_default_output}" ]; then
parsed_nvm_default="$(printf '%s\n' "${nvm_alias_default_output}" | head -n 1 | awk '{print $3}')"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Capture default nvm alias without mutating aliases

The new Node block executes nvm alias --no-colors default, but --no-colors in this position is treated as the alias name, so this call actually creates/updates an alias called --no-colors and returns default as its value. original_nvm_default therefore becomes the literal string default, and the later restore step calls nvm alias default default, leaving the default alias pointing to itself and breaking nvm use default for the user until they manually reset it. The script can also terminate early if that restore command fails under set -e. This regression occurs whenever the script runs in an environment with nvm.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant