Skip to content

Commit f35d066

Browse files
committed
chore: fixing a coderabbit change
1 parent 75a3a51 commit f35d066

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Dockerfile.tools

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Dockerfile.tools - Standalone Docker image for individual tool execution
32
FROM python:3.12-alpine@sha256:9b8808206f4a956130546a32cbdd8633bc973b19db2923b7298e6f90cc26db08 AS python_base
43

@@ -53,10 +52,9 @@ ARG TRIVY_VERSION=${TRIVY_VERSION:-false}
5352
# In RUN command below used `. /.env` <- this is sourcing vars that
5453
# specified in step below
5554
ARG INSTALL_ALL=${INSTALL_ALL:-false}
56-
RUN if [ "$INSTALL_ALL" = "true" ] || [ "$INSTALL_ALL" - "latest" ]; then \
55+
RUN if [ "$INSTALL_ALL" = "true" ] || [ "$INSTALL_ALL" = "latest" ]; then \
5756
echo "OPENTOFU_VERSION=latest" >> /.env && \
5857
echo "TERRAFORM_VERSION=latest" >> /.env && \
59-
\
6058
echo "CHECKOV_VERSION=latest" >> /.env && \
6159
echo "HCLEDIT_VERSION=latest" >> /.env && \
6260
echo "INFRACOST_VERSION=latest" >> /.env && \
@@ -67,9 +65,9 @@ RUN if [ "$INSTALL_ALL" = "true" ] || [ "$INSTALL_ALL" - "latest" ]; then \
6765
echo "TFSEC_VERSION=latest" >> /.env && \
6866
echo "TFUPDATE_VERSION=latest" >> /.env && \
6967
echo "TRIVY_VERSION=latest" >> /.env \
70-
elif [ "$INSTALL_ALL" != "false"]; then \
68+
elif [ "$INSTALL_ALL" != "false" ]; then \
7169
echo "ERROR: INSTALL_ALL must be 'true', 'latest', or 'false'" >&2 && exit 1; \
72-
; fi
70+
fi
7371

7472
# Docker `RUN`s shouldn't be consolidated here
7573
# hadolint global ignore=DL3059

0 commit comments

Comments
 (0)