Skip to content

Commit e67f838

Browse files
committed
build(docker): avoid running command twice
1 parent 9c0700f commit e67f838

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

latex/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ RUN apt-get update \
3434
texlive-latex-extra=2024.20250309-2 \
3535
texlive-science=2024.20250309-2 \
3636
texlive=2024.20250309-1 \
37-
&& IFS=$'\n\t' \
38-
&& if apt-get -s upgrade | grep -q -e '^Inst ' ; then \
39-
apt-get -s upgrade | grep -e '^Inst ' ; \
37+
&& if apt-get -s upgrade | tee -a /dev/stderr | grep -q -e '^Inst ' ; then \
4038
exit 1 ; \
4139
fi \
4240
# Removing documentation packages *after* installing them is kind of hacky,

0 commit comments

Comments
 (0)