Skip to content

Commit 4625b23

Browse files
committed
Bump rtk version to 1.0.2 and enhance installation script with validation
1 parent 767df61 commit 4625b23

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/rtk/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "rtk",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"name": "rtk",
55
"description": "Installs rtk, an LLM token-reducing CLI proxy, and optionally wires its auto-rewrite hook into Claude Code.",
66
"documentationURL": "https://github.com/SoureCode/devcontainer-features/tree/master/src/rtk",

src/rtk/install.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,16 @@ run_as_user() {
3131

3232
run_as_user 'curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh'
3333

34+
RTK_BIN="$USER_HOME/.local/bin/rtk"
35+
if [ -x "$RTK_BIN" ]; then
36+
ln -sf "$RTK_BIN" /usr/local/bin/rtk
37+
else
38+
echo "rtk feature: expected $RTK_BIN after install, but it was not found." >&2
39+
exit 1
40+
fi
41+
3442
if [ "$AUTO_PATCH_CLAUDE" = "true" ]; then
35-
if run_as_user 'command -v claude >/dev/null 2>&1'; then
43+
if command -v claude >/dev/null 2>&1; then
3644
run_as_user 'rtk init -g --auto-patch'
3745
else
3846
echo "rtk feature: claude CLI not on PATH, skipping auto-patch. Install a claude-code feature (e.g. ghcr.io/sourecode/devcontainer-features/claude-code) to enable it." >&2

0 commit comments

Comments
 (0)