From bd778cc1cbda8b5daa00abbe1576ed5dfc1e96e4 Mon Sep 17 00:00:00 2001 From: leocavalcante Date: Wed, 27 Dec 2023 14:58:35 -0300 Subject: [PATCH] refactor: Trick to pass host env vars --- src/docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docker.sh b/src/docker.sh index 8081529..0367646 100644 --- a/src/docker.sh +++ b/src/docker.sh @@ -25,7 +25,7 @@ run() { $PHPCTL_RUNTIME run \ --rm "$PHPCTL_TTY" \ --name "phpctl_$(openssl rand -hex 6)" \ - -e COMPOSER_AUTH="$COMPOSER_AUTH" \ + $(env | awk -F= '/^[[:alpha:]]/{print $1}' | sed 's/^/-e/') \ -v /var/run/docker.sock:/var/run/docker.sock \ -v ~/.gitconfig:/root/.gitconfig \ -v "$(pwd)":/opt -w /opt \