File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ RUN set -ex \
2828 \
2929 && PREFIX=/usr/local /tmp/ruby-build/install.sh \
3030 \
31- && ruby-build $(ruby-build -l | grep "^${RUBY_MAJOR}\. " ) /usr/local/ \
31+ && ruby-build $(ruby-build --definitions | grep "^${RUBY_MAJOR}\. " | sort --version-sort | tail -n 1 ) /usr/local/ \
3232 && rm -r /tmp/ruby-build/ \
3333 \
3434 && if [ -n "$BUNDLER_VERSION" ] ; then \
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ RUN set -ex \
2828 \
2929 && PREFIX=/usr/local /tmp/ruby-build/install.sh \
3030 \
31- && ruby-build $(ruby-build -l | grep "^${RUBY_MAJOR}\. " ) /usr/local/ \
31+ && ruby-build $(ruby-build --definitions | grep "^${RUBY_MAJOR}\. " | sort --version-sort | tail -n 1 ) /usr/local/ \
3232 && rm -r /tmp/ruby-build/ \
3333 \
3434 && if [ -n "$BUNDLER_VERSION" ] ; then \
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ RUN set -ex \
2828 \
2929 && PREFIX=/usr/local /tmp/ruby-build/install.sh \
3030 \
31- && ruby-build $(ruby-build -l | grep "^${RUBY_MAJOR}\. " ) /usr/local/ \
31+ && ruby-build $(ruby-build --definitions | grep "^${RUBY_MAJOR}\. " | sort --version-sort | tail -n 1 ) /usr/local/ \
3232 && rm -r /tmp/ruby-build/ \
3333 \
3434 && if [ -n "$BUNDLER_VERSION" ] ; then \
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ RUN set -ex \
2828 \
2929 && PREFIX=/usr/local /tmp/ruby-build/install.sh \
3030 \
31- && ruby-build $(ruby-build -l | grep "^${RUBY_MAJOR}\. " ) /usr/local/ \
31+ && ruby-build $(ruby-build --definitions | grep "^${RUBY_MAJOR}\. " | sort --version-sort | tail -n 1 ) /usr/local/ \
3232 && rm -r /tmp/ruby-build/ \
3333 \
3434 && if [ -n "$BUNDLER_VERSION" ] ; then \
You can’t perform that action at this time.
0 commit comments