Skip to content

Commit cda9b11

Browse files
committed
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.
1 parent 9449b51 commit cda9b11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/ruby-build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,8 @@ remove_windows_files() {
756756
}
757757

758758
build_package_copy() {
759+
# Make sure there are no leftover files in $PREFIX_PATH
760+
rm -rf "$PREFIX_PATH"
759761
mkdir -p "$PREFIX_PATH"
760762
cp -fR . "$PREFIX_PATH"
761763
}

0 commit comments

Comments
 (0)