From b93c6ff23bda3e6f378a29fc3385b69205410ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Zipitr=C3=ADa?= <3012076+fzipi@users.noreply.github.com> Date: Thu, 2 Jan 2025 08:03:12 -0300 Subject: [PATCH] Apply suggestions from code review --- nginx/Dockerfile | 2 +- nginx/Dockerfile-alpine | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 98f146a..e963880 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -59,7 +59,7 @@ RUN set -eux; \ RUN set -eux; \ declare -a modules; \ for module in ${NGINX_DYNAMIC_MODULES}; \ - do; \ + do \ repo=$(awk -F'/' '{print $2}' <<< "${module}"); \ git clone -b master --depth 1 https://github.com/${module}.git; \ modules+=("--add-dynamic-module=../${repo}"); \ diff --git a/nginx/Dockerfile-alpine b/nginx/Dockerfile-alpine index 0437c8d..fa4ef27 100644 --- a/nginx/Dockerfile-alpine +++ b/nginx/Dockerfile-alpine @@ -55,7 +55,7 @@ RUN set -eux; \ RUN set -eux; \ declare -a modules; \ for module in ${NGINX_DYNAMIC_MODULES}; \ - do; \ + do \ repo=$(awk -F'/' '{print $2}' <<< "${module}"); \ git clone -b master --depth 1 https://github.com/${module}.git; \ modules+=("--add-dynamic-module=../${repo}"); \