Skip to content

Commit

Permalink
Install ruby whenever it isn't already present
Browse files Browse the repository at this point in the history
  • Loading branch information
dsabeti committed Jun 20, 2023
1 parent 5b4136c commit fe9f6d2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,14 @@ function main() {
local phase
phase="$(basename "${0}")"

if [[ "${CF_STACK:-}" != "cflinuxfs3" ]]; then
if ! which ruby > /dev/null; then
mkdir -p "${RUBY_DIR}"

util::install
fi
if ! which ruby > /dev/null; then
mkdir -p "${RUBY_DIR}"

util::install
util::environment::setup
fi


exec "${BUILDPACK_DIR}/bin/ruby-run" "${phase}" "${@-}"
}

Expand Down

0 comments on commit fe9f6d2

Please sign in to comment.