From d5c51622c25ae609908b5d32262e58023054d434 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Tue, 5 Nov 2019 01:14:07 +0400 Subject: [PATCH] dk: dans build.env, une variable peut en mentionner une autre --- dk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dk b/dk index 03506e5..13483ab 100755 --- a/dk +++ b/dk @@ -327,7 +327,7 @@ function docker_parse_build_args() { cat "$1" | grep -v '^#' | grep -v '^$' | - sed -r 's/([^=]+)=(.*)/replace_build_args+=(--build-arg \1="\2"); \1="\2"/' + sed -r 's/([^=]+)=(.*)/\1=\2; replace_build_args+=(--build-arg \1="$\1")/' } function docker_parse_env_args() { [ -f .build.env ] && eval "$(docker_parse_build_args .build.env)"