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:
parent
1bf60a04f5
commit
c006e9ed3f
4
bin/n
4
bin/n
@ -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
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user