0
0
mirror of https://github.com/tj/n.git synced 2024-11-25 07:39:21 +01:00

Fall back to /usr/local

This commit is contained in:
Darren DeRidder 2011-06-24 13:11:53 -04:00
parent 1bf60a04f5
commit c006e9ed3f

4
bin/n
View File

@ -3,12 +3,12 @@
# Library version
VERSION="0.4.1"
#PREFIX=${PREFIX-/usr/local}
PREFIX=${PREFIX-`which node|sed 's/\/bin\/node$//'`}
#N_PREFIX=${N_PREFIX-/usr/local}
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
#