diff --git a/claudebox.sh b/claudebox.sh index 8f9fca2..b3165a3 100644 --- a/claudebox.sh +++ b/claudebox.sh @@ -1,5 +1,5 @@ # Resolve claude binary from host PATH (before clearenv strips it) -CLAUDE_BIN=$(command -v claude) || { +CLAUDE_BIN=$(readlink -f "$(command -v claude)") || { echo "error: claude not found in PATH" >&2 echo "Install Claude Code first: https://docs.anthropic.com/en/docs/claude-code" >&2 exit 1 @@ -79,7 +79,7 @@ exec bwrap \ --ro-bind /etc/hosts /etc/hosts \ --ro-bind /etc/nsswitch.conf /etc/nsswitch.conf \ --ro-bind /etc/nix /etc/nix \ - --symlink "$(command -v env)" /usr/bin/env \ + --symlink "$(readlink -f "$(command -v env)")" /usr/bin/env \ --tmpfs "$HOME" \ --bind "$HOME/.claudebox" "$HOME/.claude" \ --ro-bind "$GITCONFIG_TMP" "$HOME/.gitconfig" \