Skip to content

Commit

Permalink
Fix run.sh: use $ to take the value of CMD
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusstefan committed Nov 18, 2024
1 parent d1fe570 commit a06a8e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ all: build
.PHONY: build
build:
docker build \
--tag="opensips/pyhton-opensips:$(OPENSIPS_DOCKER_TAG)" \
--tag="opensips/python-opensips:$(OPENSIPS_DOCKER_TAG)" \
.
5 changes: 3 additions & 2 deletions docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
CMD=$1
shift

if [[ CMD == *.py ]]; then
if [[ $CMD == *.py ]]; then
TOOL=python3
elif [[ CMD == *.sh ]]; then
elif [[ $CMD == *.sh ]]; then
TOOL=bash
else
TOOL=opensips-mi
fi

exec $TOOL $CMD "$@"

0 comments on commit a06a8e0

Please sign in to comment.