mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-10-06 07:51:16 +02:00
Make sure to install to a clean prefix
* Otherwise, existing files in the prefix could easily conflict and potentially cause very hard to debug errors. * This is particularly important for *-dev builds which might be repeatedly installed to the same directory.
This commit is contained in:
parent
9449b51a01
commit
cda9b11733
1 changed files with 2 additions and 0 deletions
|
@ -756,6 +756,8 @@ remove_windows_files() {
|
|||
}
|
||||
|
||||
build_package_copy() {
|
||||
# Make sure there are no leftover files in $PREFIX_PATH
|
||||
rm -rf "$PREFIX_PATH"
|
||||
mkdir -p "$PREFIX_PATH"
|
||||
cp -fR . "$PREFIX_PATH"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue