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 \
114
114
gem update --system "$RUBYGEMS_VERSION"; \
115
115
rm -fr /root/.gem/; \
116
116
# verify we have no "ruby" packages installed
117
- ! apk --no-network list --installed \
117
+ if apk --no-network list --installed \
118
118
| grep -v '^[.]ruby-rundeps' \
119
119
| grep -i ruby \
120
- ; \
120
+ ; then false; fi; \
121
121
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
122
122
# rough smoke test
123
123
ruby --version; \
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ RUN savedAptMark="$(apt-mark showmanual)"; \
75
75
gem update --system "$RUBYGEMS_VERSION"; \
76
76
rm -fr /root/.gem/; \
77
77
# verify we have no "ruby" packages installed
78
- ! dpkg -l | grep -i ruby; \
78
+ if dpkg -l | grep -i ' ruby'; then false; fi ; \
79
79
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
80
80
# rough smoke test
81
81
ruby --version; \
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ RUN savedAptMark="$(apt-mark showmanual)"; \
100
100
gem update --system "$RUBYGEMS_VERSION"; \
101
101
rm -r /root/.gem/; \
102
102
# verify we have no "ruby" packages installed
103
- ! dpkg -l | grep -i ruby; \
103
+ if dpkg -l | grep -i ' ruby'; then false; fi ; \
104
104
[ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; \
105
105
# rough smoke test
106
106
ruby --version; \
You can’t perform that action at this time.
0 commit comments