Skip to content

Commit d0a9d7c

Browse files
committed
build(docker): avoid running command twice
1 parent 777f1e7 commit d0a9d7c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pgp-verify-jar/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ RUN apk -U upgrade \
1616
curl=8.14.1-r1 \
1717
git=2.49.1-r0 \
1818
gnupg=2.4.7-r0 \
19-
&& if apk -u list | grep -q -e . ; then \
20-
apk -u list ; \
19+
&& if apk -u list | tee -a /dev/stderr | grep -q -e . ; then \
2120
exit 1 ; \
2221
fi \
2322
&& apk cache clean \

0 commit comments

Comments
 (0)