0
0
mirror of https://github.com/tj/n.git synced 2024-11-28 21:22:03 +01:00

Tested on OSX, modified for compatability

This commit is contained in:
Darren DeRidder 2011-06-27 02:22:58 -04:00
parent c006e9ed3f
commit a84e2bfabe

4
bin/n
View File

@ -3,11 +3,7 @@
# Library version
VERSION="0.4.1"
PREFIX=${PREFIX-`which node|sed 's/\/bin\/node$//'`}
PREFIX=${PREFIX-/usr/local}
ABSPATH=$(readlink -f $0)
ABSDIR=$(dirname $ABSPATH)
N_PREFIX=${N_PREFIX-`echo $ABSDIR | sed 's/\/n\/bin$//'`}
N_PREFIX=${N_PREFIX-/usr/local}
VERSIONS_DIR=$N_PREFIX/n/versions