Skip to content

Commit 5768409

Browse files
committed
build(docker): avoid running command twice
1 parent 79d87e8 commit 5768409

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

compress/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ RUN apk -U upgrade \
3030
zip=3.0-r13 \
3131
zstd=1.5.7-r0 \
3232
zutils=1.13-r0 \
33-
&& if apk -u list | grep -q -e . ; then \
34-
apk -u list ; \
33+
&& if apk -u list | tee -a /dev/stderr | grep -q -e . ; then \
3534
exit 1 ; \
3635
fi \
3736
&& apk cache clean \

0 commit comments

Comments
 (0)