File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -114,10 +114,10 @@ RUN apk add --no-cache --virtual .ruby-builddeps \
114114 gem update --system "$RUBYGEMS_VERSION"; \
115115 rm -fr /root/.gem/; \
116116# verify we have no "ruby" packages installed
117- ! apk --no-network list --installed \
117+ if apk --no-network list --installed \
118118 | grep -v '^[.]ruby-rundeps' \
119119 | grep -i ruby \
120- ; \
120+ ; then false; fi; \
121121 [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
122122# rough smoke test
123123 ruby --version; \
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ RUN savedAptMark="$(apt-mark showmanual)"; \
7575 gem update --system "$RUBYGEMS_VERSION"; \
7676 rm -fr /root/.gem/; \
7777# verify we have no "ruby" packages installed
78- ! dpkg -l | grep -i ruby; \
78+ if dpkg -l | grep -i ' ruby'; then false; fi ; \
7979 [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
8080# rough smoke test
8181 ruby --version; \
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ RUN savedAptMark="$(apt-mark showmanual)"; \
100100 gem update --system "$RUBYGEMS_VERSION"; \
101101 rm -r /root/.gem/; \
102102# verify we have no "ruby" packages installed
103- ! dpkg -l | grep -i ruby; \
103+ if dpkg -l | grep -i ' ruby'; then false; fi ; \
104104 [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
105105# rough smoke test
106106 ruby --version; \
You can’t perform that action at this time.
0 commit comments