diff options
author | isaacs <i@izs.me> | 2011-07-27 20:23:24 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-07-27 20:23:24 +0400 |
commit | 94df8f36b032110fb8ee9bb419f0556d0b795c1d (patch) | |
tree | fdc89b2691f36f72f065153bd876b06919eeec23 /scripts | |
parent | c792bc3d2a9c1b7068760b738af79fcac6441920 (diff) |
Support npm_debug env in install script
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/install.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/install.sh b/scripts/install.sh index b534614cd..36c913562 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -12,9 +12,12 @@ if [ "x$0" = "xsh" ]; then exit $ret fi -if ! [ "x$NPM_DEBUG" = "x" ]; then - set +x +npm_config_loglevel="error" +if ! [ "x$npm_debug" = "x" ]; then + set -x + npm_config_loglevel="verbose" fi +export npm_config_loglevel # make sure that node exists node=`which node 2>&1` |