Skip to content

Commit 22d2ebc

Browse files
fix(install): initialize arrays with empty literals to prevent unbound variable errors
1 parent a49f8a0 commit 22d2ebc

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

scripts/install.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ REPO_URL="https://github.com/the-perfect-developer/the-perfect-opencode"
2525
TEMP_DIR="/tmp/the-perfect-opencode-$$"
2626

2727
# Arrays to store selected items
28-
declare -a SELECTED_AGENTS
29-
declare -a SELECTED_SKILLS
30-
declare -a SELECTED_COMMANDS
28+
declare -a SELECTED_AGENTS=()
29+
declare -a SELECTED_SKILLS=()
30+
declare -a SELECTED_COMMANDS=()
3131

3232
# Arrays to record items actually installed in this run
33-
declare -a INSTALLED_AGENTS
34-
declare -a INSTALLED_SKILLS
35-
declare -a INSTALLED_COMMANDS
33+
declare -a INSTALLED_AGENTS=()
34+
declare -a INSTALLED_SKILLS=()
35+
declare -a INSTALLED_COMMANDS=()
3636

3737
# Core items that are always installed (bare minimum requirements)
3838
CORE_AGENTS=("code-analyst" "database-architect" "developer-fast" "developer-prime" "devops-engineer" "orchestrix" "performance-engineer" "principal-architect" "security-expert" "solution-architect" "test-engineer" "ui-ux-designer")

0 commit comments

Comments
 (0)