Skip to content

Commit 49e267b

Browse files
committed
chore(coder/modules/claude-code): use $HOME variable instead of hardcoded path in symlink creation
1 parent d745117 commit 49e267b

File tree

1 file changed

+1
-5
lines changed
  • registry/coder/modules/claude-code/scripts

1 file changed

+1
-5
lines changed

registry/coder/modules/claude-code/scripts/install.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#!/bin/bash
22

3-
if [ -f "$HOME/.bashrc" ]; then
4-
source "$HOME"/.bashrc
5-
fi
6-
73
# Set strict error handling AFTER sourcing bashrc to avoid unbound variable errors from user dotfiles
84
set -euo pipefail
95

@@ -48,7 +44,7 @@ function install_claude_code_cli() {
4844

4945
# Ensure binaries are discoverable.
5046
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
5248

5349
echo "Installed Claude Code successfully. Version: $(claude --version || echo 'unknown')"
5450
else

0 commit comments

Comments
 (0)