From fe9f6d232ea0fbb6ecb6b6fe66539ef8147dfcc6 Mon Sep 17 00:00:00 2001 From: David Sabeti Date: Tue, 20 Jun 2023 22:26:39 +0000 Subject: [PATCH] Install ruby whenever it isn't already present --- bin/run | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/run b/bin/run index 06d9b97a8..dc6220f0f 100755 --- a/bin/run +++ b/bin/run @@ -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}" "${@-}" }