Skip to content

Commit bd778cc

Browse files
committed
refactor: Trick to pass host env vars
1 parent 930fd82 commit bd778cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ run() {
2525
$PHPCTL_RUNTIME run \
2626
--rm "$PHPCTL_TTY" \
2727
--name "phpctl_$(openssl rand -hex 6)" \
28-
-e COMPOSER_AUTH="$COMPOSER_AUTH" \
28+
$(env | awk -F= '/^[[:alpha:]]/{print $1}' | sed 's/^/-e/') \
2929
-v /var/run/docker.sock:/var/run/docker.sock \
3030
-v ~/.gitconfig:/root/.gitconfig \
3131
-v "$(pwd)":/opt -w /opt \

0 commit comments

Comments
 (0)