Skip to content

Commit 56171d0

Browse files
authored
Merge branch 'main' into feat/1980/bump-nacl-dep
2 parents b973b44 + 709a1d4 commit 56171d0

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

demo/run_demo

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ if [ -z "$DOCKER_NET" ]; then
2121
fi
2222
DOCKER_VOL=""
2323

24+
j=1
2425
for i in "$@"
2526
do
27+
((j++))
2628
if [ ! -z "$SKIP" ]; then
2729
SKIP=""
2830
continue
@@ -65,12 +67,12 @@ do
6567
continue
6668
;;
6769
--debug-pycharm-controller-port)
68-
PYDEVD_PYCHARM_CONTROLLER_PORT=$2
70+
PYDEVD_PYCHARM_CONTROLLER_PORT=${!j}
6971
SKIP=1
7072
continue
7173
;;
7274
--debug-pycharm-agent-port)
73-
PYDEVD_PYCHARM_AGENT_PORT=$2
75+
PYDEVD_PYCHARM_AGENT_PORT=${!j}
7476
SKIP=1
7577
continue
7678
;;
@@ -154,7 +156,7 @@ if [ ! -z "$DOCKERHOST" ]; then
154156
export RUNMODE="docker"
155157
elif [ -z "${PWD_HOST_FQDN}" ]; then
156158
# getDockerHost; for details refer to https://github.com/bcgov/DITP-DevOps/tree/main/code/snippets#getdockerhost
157-
. /dev/stdin <<<"$(cat <(curl -s --raw https://raw.githubusercontent.com/bcgov/DITP-DevOps/main/code/snippets/getDockerHost))"
159+
. /dev/stdin <<<"$(cat <(curl -s --raw https://raw.githubusercontent.com/bcgov/DITP-DevOps/main/code/snippets/getDockerHost))"
158160
export DOCKERHOST=$(getDockerHost)
159161
export RUNMODE="docker"
160162
else

0 commit comments

Comments
 (0)