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:
parent
ddbf441ca8
commit
f9ed28b992
6
bin/n
6
bin/n
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user