Skip to content

Commit 0002c4c

Browse files
patch container script
1 parent c00eee2 commit 0002c4c

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

scripts/agent-common.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,15 +779,26 @@ validate_wrapper_args() {
779779

780780
append_common_mounts() {
781781
local mount_path
782+
local container_launch_path="$TOOL_HOME/scripts/container-launch.sh"
782783

783784
DOCKER_ARGS+=(
784785
--mount "type=bind,src=$TARGET_REPO_ROOT,dst=$TARGET_REPO_ROOT"
785-
--mount "type=bind,src=$TOOL_HOME/scripts/container-launch.sh,dst=/usr/local/bin/dclaude-container-launch,readonly"
786786
--mount "type=bind,src=$HOST_HOME/.cache/dclaude/cx,dst=$HOST_HOME/.cache/cx"
787787
--mount "type=bind,src=$HOST_HOME/.cache/pip,dst=$HOST_HOME/.cache/pip"
788788
--mount "type=bind,src=$HOST_HOME/.cache/uv,dst=$HOST_HOME/.cache/uv"
789789
)
790790

791+
case "$TOOL_HOME" in
792+
*/Cellar/*)
793+
;;
794+
*)
795+
[ -f "$container_launch_path" ] || die "missing container launch script at $container_launch_path"
796+
DOCKER_ARGS+=(
797+
--mount "type=bind,src=$container_launch_path,dst=/usr/local/bin/dclaude-container-launch,readonly"
798+
)
799+
;;
800+
esac
801+
791802
if (( ${#CONFIGURED_HOME_MOUNTS[@]} > 0 )); then
792803
for mount_path in "${CONFIGURED_HOME_MOUNTS[@]}"; do
793804
DOCKER_ARGS+=(

0 commit comments

Comments
 (0)