Skip to content

Commit 4ec7393

Browse files
author
Baudbot
committed
fix: resolve node path dynamically instead of hardcoding version
Use ~/opt/node/bin with fallback to versioned glob. Fixes the runtime-node-paths drift check in CI.
1 parent c1110d5 commit 4ec7393

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

pi/skills/control-agent/startup-cleanup.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,15 @@ fi
123123
# The tmux session stays alive independently of this script (same pattern as
124124
# sentry-agent). If the bridge crashes, the loop restarts it after 5 seconds.
125125
echo "Starting slack-bridge ($BRIDGE_SCRIPT) via tmux..."
126+
NODE_BIN_DIR="$HOME/opt/node/bin"
127+
if [ ! -d "$NODE_BIN_DIR" ]; then
128+
# Fallback: resolve versioned node dir
129+
NODE_BIN_DIR="$(echo "$HOME"/opt/node-v*-linux-x64/bin | awk '{print $1}')"
130+
fi
131+
126132
tmux new-session -d -s "$BRIDGE_TMUX_SESSION" "\
127133
unset PKG_EXECPATH; \
128-
export PATH=\$HOME/.varlock/bin:\$HOME/opt/node-v22.14.0-linux-x64/bin:\$PATH; \
134+
export PATH=\$HOME/.varlock/bin:$NODE_BIN_DIR:\$PATH; \
129135
export PI_SESSION_ID=$MY_UUID; \
130136
cd $BRIDGE_DIR; \
131137
while true; do \

0 commit comments

Comments
 (0)