Skip to content

Commit a7a89d1

Browse files
committed
connect: use INPUT_VSOCK_CID instead of $1
So we can easily pass commands without having to set the ID. Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
1 parent 5cf5338 commit a7a89d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ To connect to an existing VM with a remote shell, you can use this command:
9999
```bash
100100
docker exec -it \
101101
"$(docker ps --filter "label=name=mptcp-upstream-virtme-docker" -l --format "{{.ID}}")" \
102-
/entrypoint.sh connect
102+
/entrypoint.sh connect [CMD]
103103
```
104104

105105
(Or use the `connect.sh` script.)

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@ case "${INPUT_MODE}" in
20092009
analyze "${@:-normal}"
20102010
;;
20112011
"connect")
2012-
exec "${VIRTME_RUN}" --mods none --client --port "${1:-${INPUT_VSOCK_CID}}" ${2:+--remote-cmd "${*:2}"}
2012+
exec "${VIRTME_RUN}" --mods none --client --port "${INPUT_VSOCK_CID}" ${1:+--remote-cmd "${*}"}
20132013
;;
20142014
"lcov2html")
20152015
setup_env "${@:-normal}"

0 commit comments

Comments
 (0)