From 848bbacbb39acba05d0b01c92d3ab9a2fc599f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?pudiva=20chip=20l=C3=ADquida?= Date: Fri, 5 Nov 2021 13:43:53 +0000 Subject: [PATCH] Don't remove prefix before installing Back in cda9b11733546c23db2ab70817648dcc7a48cba9, node-build started removing the prefix path before an install to prevent conflicts and hard to debug errors. However, the operation might inadvertently delete user data (for example if they try to install to /usr/local), and is also incompatible with ruby-build, that does not clean the prefix. --- bin/node-build | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/node-build b/bin/node-build index a4d302d5f..72d1f3a43 100755 --- a/bin/node-build +++ b/bin/node-build @@ -725,8 +725,6 @@ build_package_autoconf() { } 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" }