Update setup-node-ubuntu.bash
This commit is contained in:
parent
24b68d4f90
commit
1bc7b66208
|
@ -1,6 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
set -e
|
||||
set -u
|
||||
set -o pipefail
|
||||
|
||||
if [ -z "${PREFIX-}" ]; then
|
||||
PREFIX=""
|
||||
fi
|
||||
|
||||
if [ -n "$NODE_PATH" ]; then
|
||||
node_install_path=$(dirname $(dirname $NODE_PATH))
|
||||
else
|
||||
node_install_path=$PREFIX/usr/local
|
||||
|
|
Loading…
Reference in New Issue