0
0
mirror of https://github.com/tj/n.git synced 2024-11-29 05:42:48 +01:00

Use cp -fR to preserve npm symlink

This commit is contained in:
Darren DeRidder 2012-05-16 21:44:51 -04:00
parent ddbf441ca8
commit f9ed28b992

6
bin/n
View File

@ -141,9 +141,9 @@ install_node() {
# TODO: refactor, this is lame
cd $dir \
&& mkdir -p $N_PREFIX/lib/node \
&& cp -fr $dir/include/node $N_PREFIX/include \
&& cp -f $dir/bin/* $N_PREFIX/bin \
&& cp -fr $dir/lib/node/* $N_PREFIX/lib/node/ .
&& cp -fR $dir/include/node $N_PREFIX/include \
&& cp -fR $dir/bin/* $N_PREFIX/bin \
&& cp -fR $dir/lib/node/* $N_PREFIX/lib/node/ .
# install
else
local tarball="node-v$version.tar.gz"