We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1f576f commit 5447416Copy full SHA for 5447416
connect.sh
@@ -1,9 +1,8 @@
1
#! /bin/bash
2
+# SPDX-License-Identifier: GPL-2.0
3
+DIR="$(dirname "$(realpath -P "${0}")")"
4
5
if [[ "${-}" =~ "x" ]]; then
6
export INPUT_TRACE=1
7
fi
-docker exec -it \
- -e "INPUT_TRACE=${INPUT_TRACE:-0}" \
8
- "$(docker ps --filter "label=name=mptcp-upstream-virtme-docker" -l --format "{{.ID}}")" \
9
- /entrypoint.sh connect "${@}"
+bash "-${-}" "${DIR}/container.sh" /entrypoint.sh connect "${@}"
container.sh
@@ -0,0 +1,7 @@
+#! /bin/bash
+
+docker exec -it \
+ -e "INPUT_TRACE=${INPUT_TRACE:-0}" \
+ "$(docker ps --filter "label=name=mptcp-upstream-virtme-docker" -l --format "{{.ID}}")" \
+ "${@:-bash}"
0 commit comments