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