Skip to content

Commit f4a2052

Browse files
Merge pull request #1017 from dsabeti/main
Install ruby when custom stacks are used
2 parents d4053a6 + fe9f6d2 commit f4a2052

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

bin/run

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,14 @@ function main() {
9393
local phase
9494
phase="$(basename "${0}")"
9595

96-
if [[ "${CF_STACK:-}" == "cflinuxfs4" ]]; then
97-
if ! which ruby > /dev/null; then
98-
mkdir -p "${RUBY_DIR}"
99-
100-
util::install
101-
fi
96+
if ! which ruby > /dev/null; then
97+
mkdir -p "${RUBY_DIR}"
10298

99+
util::install
103100
util::environment::setup
104101
fi
105102

103+
106104
exec "${BUILDPACK_DIR}/bin/ruby-run" "${phase}" "${@-}"
107105
}
108106

0 commit comments

Comments
 (0)