Skip to content

Conversation

ryuwd
Copy link

@ryuwd ryuwd commented Sep 3, 2025

No description provided.

@ryuwd ryuwd requested a review from Copilot September 3, 2025 11:16
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes potential "unbound variable" errors in a shell script by adding proper parameter expansion defaults for the node_pkg_workspaces array variable. The fix ensures the script continues to work when node_pkg_workspaces is not initialized or is empty.

  • Adds default empty values using ${array[@]:-} syntax for array expansions
  • Adds default value of 0 for array length checks using ${#array[@]:-0} syntax

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@ryuwd ryuwd closed this Sep 3, 2025
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