Update setup-min.sh

This commit is contained in:
AJ ONeal 2017-05-15 21:56:04 -06:00
parent e93042403c
commit b6c4f023f5
1 changed files with 9 additions and 1 deletions

View File

@ -12,7 +12,15 @@
# curl -fsSL https://example.com/setup-min.bash | bash # curl -fsSL https://example.com/setup-min.bash | bash
# wget -nv https://example.com/setup-min.bash -O - | bash # wget -nv https://example.com/setup-min.bash -O - | 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)) node_install_path=$(dirname $(dirname $NODE_PATH))
else else
node_install_path=$PREFIX/usr/local node_install_path=$PREFIX/usr/local