Skip to content

Commit 31440e0

Browse files
authored
Merge pull request #205 from reify-nz/bugfix/remove-dependency-on-speecific-yml-indention-style
fix: make AWK patterns flexible for YAML indentation
2 parents b34c54d + 7906a60 commit 31440e0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

scripts/create-role.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ select_verifiers() {
500500
fi
501501

502502
# Extract verifier IDs
503-
local verifier_ids=($(awk '/^ - id:/ {print $3}' "$verifiers_file"))
503+
local verifier_ids=($(awk '/^[ \t]*- id:/ {print $3}' "$verifiers_file"))
504504

505505
if [[ ${#verifier_ids[@]} -eq 0 ]]; then
506506
print_verbose "No verifiers defined, skipping verifier selection"

scripts/project-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ install_claude_code_files() {
354354
local template_file=$(get_profile_file "$EFFECTIVE_PROFILE" "agents/templates/implementer.md" "$BASE_DIR")
355355
if [[ -f "$template_file" ]]; then
356356
# Get list of implementer IDs
357-
local implementer_ids=$(awk '/^ - id:/ {print $3}' "$implementers_file")
357+
local implementer_ids=$(awk '/^[ \t]*- id:/ {print $3}' "$implementers_file")
358358

359359
for id in $implementer_ids; do
360360
print_verbose "Generating implementer agent: $id"
@@ -408,7 +408,7 @@ install_claude_code_files() {
408408
local template_file=$(get_profile_file "$EFFECTIVE_PROFILE" "agents/templates/verifier.md" "$BASE_DIR")
409409
if [[ -f "$template_file" ]]; then
410410
# Get list of verifier IDs
411-
local verifier_ids=$(awk '/^ - id:/ {print $3}' "$verifiers_file")
411+
local verifier_ids=$(awk '/^[ \t]*- id:/ {print $3}' "$verifiers_file")
412412

413413
for id in $verifier_ids; do
414414
print_verbose "Generating area verifier agent: $id"

scripts/project-update.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ update_claude_code_files() {
612612
if [[ -f "$implementers_file" ]]; then
613613
local template_file=$(get_profile_file "$PROJECT_PROFILE" "agents/templates/implementer.md" "$BASE_DIR")
614614
if [[ -f "$template_file" ]]; then
615-
local implementer_ids=$(awk '/^ - id:/ {print $3}' "$implementers_file")
615+
local implementer_ids=$(awk '/^[ \t]*- id:/ {print $3}' "$implementers_file")
616616

617617
for id in $implementer_ids; do
618618
print_verbose "Updating implementer agent: $id"
@@ -676,7 +676,7 @@ update_claude_code_files() {
676676
if [[ -f "$verifiers_file" ]]; then
677677
local template_file=$(get_profile_file "$PROJECT_PROFILE" "agents/templates/verifier.md" "$BASE_DIR")
678678
if [[ -f "$template_file" ]]; then
679-
local verifier_ids=$(awk '/^ - id:/ {print $3}' "$verifiers_file")
679+
local verifier_ids=$(awk '/^[ \t]*- id:/ {print $3}' "$verifiers_file")
680680

681681
for id in $verifier_ids; do
682682
print_verbose "Updating area verifier agent: $id"

0 commit comments

Comments
 (0)