Skip to content

Commit 71c52f6

Browse files
faugustdevclaude
andcommitted
Fix heredoc bug in gcc_init.sh and add .gitignore
- Fix: $(date) was not interpolating inside single-quoted heredoc in commit.md generation. Extracted to variable before heredoc block. - Add .gitignore excluding .GCC/ directory, ROADMAP.md, and OS/editor files Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 05e09dc commit 71c52f6

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# GCC memory directory - should not be committed
2+
# Each user/agent generates their own context
3+
.GCC/
4+
5+
# Internal planning
6+
ROADMAP.md
7+
8+
# OS files
9+
.DS_Store
10+
Thumbs.db
11+
12+
# Editor files
13+
*.swp
14+
*.swo
15+
*~
16+
.vscode/
17+
.idea/

scripts/gcc_init.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ dependencies: []
4141
EOF
4242

4343
# Create initial commit.md
44-
cat > "$GCC_DIR/commit.md" << 'EOF'
44+
INIT_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
45+
cat > "$GCC_DIR/commit.md" << EOF
4546
# Commit History
4647
4748
## [INIT] Project initialized
48-
- **Date**: $(date -u +"%Y-%m-%dT%H:%M:%SZ")
49+
- **Date**: $INIT_DATE
4950
- **Branch**: main
5051
- **Summary**: GCC memory system initialized.
5152
EOF

0 commit comments

Comments
 (0)