Skip to content

Commit 8a26800

Browse files
committed
feat: Add UID and GID to command
1 parent 4a15866 commit 8a26800

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

bin/code.mk

Lines changed: 6 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 --rm -v "$$PWD":/codebase -v "$$PWD/ecs.php":/app/ecs.php ${ECS_IMAGE} bash
21+
ECS_DR := docker run -it --user=${UID}:${GID} --rm -v "$$PWD":/codebase -v "$$PWD/ecs.php":/app/ecs.php ${ECS_IMAGE} bash
2222
else
23-
ECS_DR := docker run -it --rm -v "$$PWD":/codebase ${ECS_IMAGE} bash
23+
ECS_DR := docker run -it --user=${UID}:${GID} --rm -v "$$PWD":/codebase ${ECS_IMAGE} bash
2424
endif
2525

2626
GIT_DIR = $(shell git rev-parse --show-toplevel)
@@ -80,8 +80,11 @@ code.config.publish:
8080
@docker rm -v ${CONTAINER_ID}
8181
@echo '...........Published "ecs.php"'
8282

83+
##
84+
# @command code.self-update Download latest code.mk file.
85+
##
8386
code.self-update:
8487
@echo '...........Downloading new code.mk file'
8588
@$(eval CODE_MK_PATH = $(shell find ./ -name code.mk))
86-
$(shell curl -o ${CODE_MK_PATH} ${CODE_MK_DOWNLOAD_URL})
89+
$(shell curl -o ${CODE_MK_PATH} ${CODE_MK_DOWNLOAD_URL} -k)
8790
@echo '...........Downloaded. Path: ${CODE_MK_PATH}'

0 commit comments

Comments
 (0)