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-11-03 19:03:01 +0400
committerisaacs <i@izs.me>2011-11-03 19:03:01 +0400
commitcd4cd517455c7bc5faf00f92b780a032a56c2da8 (patch)
treee64d864591a0b4be2c3c2d8bfbac58d9099934dc /scripts
parentf8c7d13fe82be6b458eb1ededc48a0b09f47ba76 (diff)
Use npm_config_tar in install script
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 3571e7bb5..0ea93fee9 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -75,6 +75,9 @@ BACK="$PWD"
ret=0
tar="${TAR}"
if [ -z "$tar" ]; then
+ tar="${npm_config_tar}"
+fi
+if [ -z "$tar" ]; then
tar=`which tar 2>&1`
ret=$?
fi