Skip to content

Commit 12943a1

Browse files
hyperpolymathclaude
andcommitted
fix(just): repair Makefile-style $$ escaping in CRG recipes
just passes $$ through to sh verbatim (it is not Make), so crg-grade/crg-badge have never executed: sh parsed grade=$$(...) as PID followed by a parenthesis. Template bug, likely estate-wide. Both recipes now run: grade C, badge renders. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4610741 commit 12943a1

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

.machine_readable/contractiles/Justfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,20 @@ llm-context:
5656

5757
# Print the current CRG grade (reads from READINESS.md '**Current Grade:** X' line)
5858
crg-grade:
59-
@grade=$$(grep -oP '(?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2>/dev/null | head -1); \
60-
[ -z "$$grade" ] && grade="X"; \
61-
echo "$$grade"
59+
@grade=$(grep -oP '(?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2>/dev/null | head -1); \
60+
[ -z "$grade" ] && grade="X"; \
61+
echo "$grade"
6262

6363
# Generate a shields.io badge markdown for the current CRG grade
6464
# Looks for '**Current Grade:** X' in READINESS.md; falls back to X
6565
crg-badge:
66-
@grade=$$(grep -oP '(?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2>/dev/null | head -1); \
67-
[ -z "$$grade" ] && grade="X"; \
68-
case "$$grade" in \
66+
@grade=$(grep -oP '(?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2>/dev/null | head -1); \
67+
[ -z "$grade" ] && grade="X"; \
68+
case "$grade" in \
6969
A) color="brightgreen" ;; B) color="green" ;; C) color="yellow" ;; \
7070
D) color="orange" ;; E) color="red" ;; F) color="critical" ;; \
7171
*) color="lightgrey" ;; esac; \
72-
echo "[![CRG $$grade](https://img.shields.io/badge/CRG-$$grade-$$color?style=flat-square)](https://github.com/hyperpolymath/standards/tree/main/component-readiness-grades)"
72+
echo "[![CRG $grade](https://img.shields.io/badge/CRG-$grade-$color?style=flat-square)](https://github.com/hyperpolymath/standards/tree/main/component-readiness-grades)"
7373

7474
secret-scan-trufflehog:
7575
@command -v trufflehog >/dev/null && trufflehog filesystem . --only-verified || true

Justfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,20 @@ llm-context:
5656

5757
# Print the current CRG grade (reads from READINESS.md '**Current Grade:** X' line)
5858
crg-grade:
59-
@grade=$$(grep -oP '(?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2>/dev/null | head -1); \
60-
[ -z "$$grade" ] && grade="X"; \
61-
echo "$$grade"
59+
@grade=$(grep -oP '(?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2>/dev/null | head -1); \
60+
[ -z "$grade" ] && grade="X"; \
61+
echo "$grade"
6262

6363
# Generate a shields.io badge markdown for the current CRG grade
6464
# Looks for '**Current Grade:** X' in READINESS.md; falls back to X
6565
crg-badge:
66-
@grade=$$(grep -oP '(?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2>/dev/null | head -1); \
67-
[ -z "$$grade" ] && grade="X"; \
68-
case "$$grade" in \
66+
@grade=$(grep -oP '(?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2>/dev/null | head -1); \
67+
[ -z "$grade" ] && grade="X"; \
68+
case "$grade" in \
6969
A) color="brightgreen" ;; B) color="green" ;; C) color="yellow" ;; \
7070
D) color="orange" ;; E) color="red" ;; F) color="critical" ;; \
7171
*) color="lightgrey" ;; esac; \
72-
echo "[![CRG $$grade](https://img.shields.io/badge/CRG-$$grade-$$color?style=flat-square)](https://github.com/hyperpolymath/standards/tree/main/component-readiness-grades)"
72+
echo "[![CRG $grade](https://img.shields.io/badge/CRG-$grade-$color?style=flat-square)](https://github.com/hyperpolymath/standards/tree/main/component-readiness-grades)"
7373

7474
secret-scan-trufflehog:
7575
@command -v trufflehog >/dev/null && trufflehog filesystem . --only-verified || true

0 commit comments

Comments
 (0)