We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c03986f commit 13e1966Copy full SHA for 13e1966
registry/coder/modules/claude-code/scripts/install.sh
@@ -1,9 +1,5 @@
1
#!/bin/bash
2
3
-if [ -f "$HOME/.bashrc" ]; then
4
- source "$HOME"/.bashrc
5
-fi
6
-
7
# Set strict error handling AFTER sourcing bashrc to avoid unbound variable errors from user dotfiles
8
set -euo pipefail
9
@@ -48,7 +44,7 @@ function install_claude_code_cli() {
48
44
49
45
# Ensure binaries are discoverable.
50
46
echo "Creating a symlink for claude"
51
- sudo ln -s /home/coder/.local/bin/claude /usr/local/bin/claude
47
+ ln -s "${HOME}"/.local/bin/claude /usr/local/bin/claude
52
53
echo "Installed Claude Code successfully. Version: $(claude --version || echo 'unknown')"
54
else
0 commit comments