fix: avoid reinstallation of claude code with each restart of ddev

This commit is contained in:
Björn Fromme
2026-01-11 13:35:50 +01:00
parent d922fd2b9c
commit 830fd2464c
+1 -1
View File
@@ -23,4 +23,4 @@ hooks:
# Set up PATH # Set up PATH
- exec: "mkdir -p ~/.bashrc.d && echo 'export PATH=\"$HOME/.local/bin:$PATH\"' > ~/.bashrc.d/claude.sh" - exec: "mkdir -p ~/.bashrc.d && echo 'export PATH=\"$HOME/.local/bin:$PATH\"' > ~/.bashrc.d/claude.sh"
# Install Claude Code if not already installed # Install Claude Code if not already installed
- exec: "test -f /mnt/claude-binaries/local-share/claude/versions/*/claude || curl -fsSL https://claude.ai/install.sh | bash" - exec: "ls /mnt/claude-binaries/local-share/claude/versions/* >/dev/null 2>&1 || curl -fsSL https://claude.ai/install.sh | bash"