Skip to content

Commit 1955346

Browse files
committed
feat: Remove UID and GID from command
1 parent ec6c929 commit 1955346

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/code.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ ifndef path
1818
endif
1919

2020
ifneq ("$(wildcard ecs.php)","")
21-
ECS_DR := docker run -it --user=${UID}:${GID} --rm -v "$$PWD":/codebase -v "$$PWD/ecs.php":/app/ecs.php ${ECS_IMAGE} bash
21+
ECS_DR := docker run -it --rm -v "$$PWD":/codebase -v "$$PWD/ecs.php":/app/ecs.php ${ECS_IMAGE} bash
2222
else
23-
ECS_DR := docker run -it --user=${UID}:${GID} --rm -v "$$PWD":/codebase ${ECS_IMAGE} bash
23+
ECS_DR := docker run -it --rm -v "$$PWD":/codebase ${ECS_IMAGE} bash
2424
endif
2525

2626
GIT_DIR = $(shell git rev-parse --show-toplevel)
@@ -33,7 +33,7 @@ GIT_DIFF_BRANCH=$(shell git diff --name-only --diff-filter=ACMRTUXB "${GIT_DIFF_
3333
##
3434
code.check:
3535
${ECS_DR} \
36-
-c "ecs check --config /app/ecs.php ${path}"
36+
-c "pwd && whoami && ecs check --config /app/ecs.php ${path}"
3737

3838
##
3939
# @command code.fix Fix code in specified path. Usage: `make code.fix path=src/app\ src/tests` (src by default)

0 commit comments

Comments
 (0)