Update setup-min.sh

这个提交包含在:
AJ ONeal 2017-05-15 21:56:04 -06:00
父节点 e93042403c
当前提交 b6c4f023f5

查看文件

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