diff --git a/entrypoint.sh b/entrypoint.sh index d0ee7f1..7b3bf6a 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -33,8 +33,8 @@ if [ "${DOCKER_USER-}" ]; then su "$(id -un 1000)" -c "git config --global core.sshCommand /usr/bin/ssh" if [ -n "$GIT_USER" ] && [ -n "$GIT_EMAIL" ]; then - su "$(id -un 1000)" -c "git config --global user.name '$GIT_USER'" - su "$(id -un 1000)" -c "git config --global user.email '$GIT_EMAIL'" + su "$(id -un 1000)" -c "git config --global user.name $GIT_USER" + su "$(id -un 1000)" -c "git config --global user.email $GIT_EMAIL" echo "git 用户已设置完毕" fi @@ -59,4 +59,4 @@ if [ -d "${ENTRYPOINTD}" ]; then find "${ENTRYPOINTD}" -type f -executable -print -exec {} \; fi -su "$(id -un 1000)" -c "exec dumb-init /usr/bin/code-server '$@'" +su "$(id -un 1000)" -c "exec dumb-init /usr/bin/code-server \"$@\""