Skip to content

Commit 126641f

Browse files
him0claude
andcommitted
docs: use printf instead of echo -e for POSIX compatibility
Replace echo -e with printf in the .worktreeinclude test example to ensure compatibility with POSIX shells that don't support the -e flag. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4d81f41 commit 126641f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ git config --add gtr.copy.exclude "**/.env"
134134
# Expected: Copies .env.example but not .env
135135

136136
# Test .worktreeinclude file
137-
echo -e "# Test patterns\n**/.env.example\n*.md" > .worktreeinclude
137+
printf '# Test patterns\n**/.env.example\n*.md\n' > .worktreeinclude
138138
echo "TEST=value" > .env.example
139139
./bin/gtr new test-worktreeinclude
140140
# Expected: Copies .env.example and *.md files to worktree

0 commit comments

Comments
 (0)