diff --git a/connect.sh b/connect.sh index 530328c..feb5d27 100755 --- a/connect.sh +++ b/connect.sh @@ -1,5 +1,9 @@ -#! /bin/bash -x +#! /bin/bash +if [[ "${-}" =~ "x" ]]; then + export INPUT_TRACE=1 +fi docker exec -it \ + -e "INPUT_TRACE=${INPUT_TRACE:-0}" \ "$(docker ps --filter "label=name=mptcp-upstream-virtme-docker" -l --format "{{.ID}}")" \ /entrypoint.sh connect "${@}"