mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-10-28 07:41:07 +01:00
Avoid endless recursion when rbx is installed over existing one
When installing rbx over an existing location, the `gems/bin` directory will already be a symlink to `bin/` and an attempt to recreate this will end up in recursion that keeps growing a binstub file until the disk is full.
This commit is contained in:
parent
985200d4da
commit
b3512f494e
1 changed files with 1 additions and 1 deletions
|
|
@ -644,7 +644,7 @@ fix_rbx_gem_binstubs() {
|
|||
local bindir="${prefix}/bin"
|
||||
local file binstub
|
||||
# Symlink Rubinius' `gems/bin/` into `bin/`
|
||||
if [ -d "$gemdir" ]; then
|
||||
if [ -d "$gemdir" ] && [ ! -L "$gemdir" ]; then
|
||||
for file in "$gemdir"/*; do
|
||||
binstub="${bindir}/${file##*/}"
|
||||
rm -f "$binstub"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue