File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,8 +21,10 @@ if [ -z "$DOCKER_NET" ]; then
2121fi
2222DOCKER_VOL=" "
2323
24+ j=1
2425for i in " $@ "
2526do
27+ (( j++ ))
2628 if [ ! -z " $SKIP " ]; then
2729 SKIP=" "
2830 continue
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"
155157elif [ -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"
160162else
You can’t perform that action at this time.
0 commit comments