Skip to content

Commit 7d8c732

Browse files
committed
build(docker): avoid running command twice
1 parent 7db796e commit 7d8c732

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pdf/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ RUN apk -U upgrade \
2626
py3-pip=25.1.1-r0 \
2727
python3=3.12.11-r0 \
2828
qpdf=12.2.0-r0 \
29-
&& if apk -u list | grep -q -e . ; then \
30-
apk -u list ; \
29+
&& if apk -u list | tee -a /dev/stderr | grep -q -e . ; then \
3130
exit 1 ; \
3231
fi \
3332
&& apk cache clean \

0 commit comments

Comments
 (0)