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-05-01 02:40:55 +0400
committerisaacs <i@izs.me>2011-05-01 02:40:55 +0400
commit6bbf91494f378d648bdedc922af824b3d529eb62 (patch)
treedbdb0590e236cc1dd945952d99dd0db63a89818b /scripts
parentec35e195161b63c316dd9c612490b4be847b5a7f (diff)
Also support clean=no
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index c18cb641e..ebf070eb5 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -120,7 +120,9 @@ cd "$TMP" \
ret=0
if [ $isnpm10 -eq 1 ] && [ -f "scripts/clean-old.sh" ]; then
- if ! [ "x$skipclean" = "x" ]; then
+ if ! [ "x$skipclean" = "x" ] \
+ || [ "x$clean" = "xno" ] \
+ || [ "x$clean" = "xn" ]; then
echo "Skipping 0.x cruft clean" >&2
ret=0
elif [ "x$clean" = "xy" ] || [ "x$clean" = "xyes" ]; then