Skip to content

Commit a06a8e0

Browse files
committed
Fix run.sh: use $ to take the value of CMD
1 parent d1fe570 commit a06a8e0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docker/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ all: build
66
.PHONY: build
77
build:
88
docker build \
9-
--tag="opensips/pyhton-opensips:$(OPENSIPS_DOCKER_TAG)" \
9+
--tag="opensips/python-opensips:$(OPENSIPS_DOCKER_TAG)" \
1010
.

docker/run.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
CMD=$1
44
shift
55

6-
if [[ CMD == *.py ]]; then
6+
if [[ $CMD == *.py ]]; then
77
TOOL=python3
8-
elif [[ CMD == *.sh ]]; then
8+
elif [[ $CMD == *.sh ]]; then
99
TOOL=bash
1010
else
1111
TOOL=opensips-mi
1212
fi
1313

1414
exec $TOOL $CMD "$@"
15+

0 commit comments

Comments
 (0)