Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/claude-code/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "claude-code",
"version": "2.0.2",
"version": "2.0.3",
"name": "claude-code",
"documentationURL": "http://github.com/devcontainers-extra/features/tree/main/src/claude-code",
"description": "Claude Code is an agentic coding tool that lives in your terminal",
Expand Down
7 changes: 7 additions & 0 deletions src/claude-code/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

set -e

# Make sure that variable _REMOTE_USER_HOME is properly set
if [ -z "$_REMOTE_USER_HOME" ]; then
# shellcheck disable=2016 # this is intentional as the expansion should happen in the context of the new session
_REMOTE_USER_HOME="$(su - "$_REMOTE_USER" -c 'echo "$HOME"')"
export _REMOTE_USER_HOME
fi

# Install via Anthropic's recommended method
# Script downloaded from them:
# https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/bootstrap.sh
Expand Down