Skip to content

Commit 506466c

Browse files
committed
chore: Fix coderabbit grep pattern
1 parent 0751a04 commit 506466c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile.tools

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ COPY lib_getopt /usr/local/bin/
147147
COPY src/pre_commit_terraform/ /usr/local/lib/python3.12/site-packages/pre_commit_terraform/
148148

149149
# Install hooks extra deps
150-
RUN if [ "$(grep -o '^terraform-docs SKIPPED$' /usr/bin/tools_versions_info)" = "" ]; then \
150+
RUN if ! grep -q '^terraform-docs: SKIPPED$' /usr/bin/tools_versions_info; then \
151151
apk add --no-cache perl=~5 \
152152
; fi && \
153-
if [ "$(grep -o '^infracost SKIPPED$' /usr/bin/tools_versions_info)" = "" ]; then \
153+
if ! grep -q '^infracost: SKIPPED$' /usr/bin/tools_versions_info; then \
154154
apk add --no-cache jq=~1 \
155155
; fi && \
156156
# Fix git runtime fatal:

0 commit comments

Comments
 (0)