File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- GEMFILE_ABS_PATH=$( realpath " $PARAM_GEMFILE " )
2+ GEMFILE_ABS_PATH=" $( cd " $( dirname " $PARAM_GEMFILE " ) " && pwd -P) /$( basename " $PARAM_GEMFILE " ) "
3+
4+ echo " $( cd " $( dirname LICENSE) " && pwd -P) /$( basename LICENSE) "
35if bundle config set > /dev/null 2>&1 ; then
46 if [ " $PARAM_PATH " == " ./vendor/bundle" ]; then
57 bundle config deployment ' true'
Original file line number Diff line number Diff line change 22
33PARAM_RUBY_VERSION=$( eval echo " ${PARAM_VERSION} " )
44RUBY_VERSION_MAJOR=$( echo " $PARAM_VERSION " | cut -d. -f1)
5+ RUBY_VERSION_MINOR=$( echo " $PARAM_VERSION " | cut -d. -f2)
56detected_platform=" $( uname -s | tr ' [:upper:]' ' [:lower:]' ) "
6- if [ " $detected_platform " = " darwin" ] && [ " $RUBY_VERSION_MAJOR " -le 2 ]; then
7- 8- OPENSSL_LOCATION=
" $( brew --prefix [email protected] ) " 9- export RUBY_CONFIGURE_OPTS=" --with-openssl-dir=$OPENSSL_LOCATION "
7+
8+ # When on MacOS, and versions minor or equal to 3.0.x. These are the versions depending on OpenSSL 1.1
9+ if [[ " $detected_platform " = " darwin" && ( " $RUBY_VERSION_MAJOR " -le 2 || ( " $RUBY_VERSION_MAJOR " -eq 3 && " $RUBY_VERSION_MINOR " -eq 0 ) ) ]]; then
1010 rbenv install $PARAM_RUBY_VERSION
1111 rbenv global $PARAM_RUBY_VERSION
1212 exit 0
@@ -21,7 +21,7 @@ elif ! openssl version | grep -q -E '1\.[0-9]+\.[0-9]+'; then
2121 # location of RVM is expected to be available at RVM_HOME env var
2222 WITH_OPENSSL=" --with-openssl-dir=$RVM_HOME /usr"
2323fi
24-
24+ rvm get master
2525rvm install " $PARAM_RUBY_VERSION " " $WITH_OPENSSL "
2626rvm use " $PARAM_RUBY_VERSION "
2727
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ echo 7D2BAF1CF37B13E2069D6956105BD0E739499BDB:6: | gpg --import-ownertrust
5757
5858# # Update if RVM is installed and exit
5959if [ -x " $( command -v rvm -v) " ]; then
60- rvm get stable
60+ rvm get head
6161 exit 0
6262fi
6363
You can’t perform that action at this time.
0 commit comments