Skip to content

Commit 0cc2a25

Browse files
committed
Enable Claude Code auto-updates
1 parent 4c6fe6a commit 0cc2a25

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/claude-code/install.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ install_claude_code() {
9595
if command -v claude >/dev/null; then
9696
echo "Claude Code CLI installed successfully!"
9797
claude --version
98+
99+
# Ensure correct permissions for auto-updates
100+
local global_node_modules=$(npm root -g)
101+
if [ -d "$global_node_modules/@anthropic-ai" ]; then
102+
chmod -R g+rw "$global_node_modules/@anthropic-ai" \
103+
|| echo "WARNING: Could not set permissions on install directory"
104+
fi
105+
98106
return 0
99107
else
100108
echo "ERROR: Claude Code CLI installation failed!"

0 commit comments

Comments
 (0)