Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/detect
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [ "$CF_STACK" == "cflinuxfs4" ]; then
mkdir -p "${PYTHON_DIR}"
source "$BP/bin/install-python" "$PYTHON_DIR" "$BP" &> /dev/null

RUBY_DIR="/tmp/ruby"
RUBY_DIR="/tmp/php-buildpack/ruby"
mkdir -p "${RUBY_DIR}"
source "$BP/bin/install-ruby" "$RUBY_DIR" "$BP" &> /dev/null
fi
Expand Down
6 changes: 3 additions & 3 deletions bin/install-ruby
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ function main() {
local buildpack_dir="$2"
local ruby_dep_name=$(get_ruby_from_manifest "$buildpack_dir")

if [[ ! -d "/tmp/ruby/bin" ]]; then
if [[ ! -d "/tmp/php-buildpack/ruby/bin" ]]; then
setup_ruby "$ruby_dep_name" "$install_dir" "$buildpack_dir"
elif [[ $install_dir != "/tmp/ruby" ]]; then
cp -r "/tmp/ruby/." "$install_dir"
elif [[ $install_dir != "/tmp/php-buildpack/ruby" ]]; then
cp -r "/tmp/php-buildpack/ruby/." "$install_dir"
fi
export PATH="$install_dir/bin:${PATH:-}"
alias ruby=ruby3
Expand Down
2 changes: 1 addition & 1 deletion bin/release
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if [ "$CF_STACK" == "cflinuxfs4" ]; then
mkdir -p "${PYTHON_DIR}"
source "$BP/bin/install-python" "$PYTHON_DIR" "$BP" &> /dev/null

RUBY_DIR="/tmp/ruby"
RUBY_DIR="/tmp/php-buildpack/ruby"
mkdir -p "${RUBY_DIR}"
source "$BP/bin/install-ruby" "$RUBY_DIR" "$BP" &> /dev/null
fi
Expand Down