Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-07-27 20:23:24 +0400
committerisaacs <i@izs.me>2011-07-27 20:23:24 +0400
commit94df8f36b032110fb8ee9bb419f0556d0b795c1d (patch)
treefdc89b2691f36f72f065153bd876b06919eeec23 /scripts
parentc792bc3d2a9c1b7068760b738af79fcac6441920 (diff)
Support npm_debug env in install script
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install.sh7
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`