Permalink
Browse files

Revert "Use symlinks instead of copying files upon switch."

This reverts commit 0895ea3.
  • Loading branch information...
1 parent 77946bb commit d36c2b88047e3eae27e80938a13b1313df0c1f82 @tj committed Oct 8, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 bin/n
View
11 bin/n
@@ -138,11 +138,12 @@ install_node() {
# activate
local dir=$VERSIONS_DIR/$version
if test -d $dir; then
- # symlink everything, purge old copies or symlinks
- for d in bin lib share include; do
- rm -rf $N_PREFIX/$d
- ln -s $dir/$d $N_PREFIX/$d
- done
+ # TODO: refactor, this is lame
+ cd $dir \
+ && mkdir -p $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"

0 comments on commit d36c2b8

Please sign in to comment.