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-04-04 22:20:58 +0400
committerisaacs <i@izs.me>2011-04-04 22:20:58 +0400
commitdd478c0b50964ada95209788a2a29b57d2a99b18 (patch)
treebbf163a3876dc3825015cfe133de3004bc08fc25 /scripts
parent9f2fa2b5d6397a054142af328102005afc22f960 (diff)
Also try the nomake style if make fails
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 0df9102cb..65db80170 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -85,9 +85,7 @@ cd "$TMP" \
echo "Please upgrade node before continuing."
exit $ret
fi) \
- && (if ! [ "$make" = "NOMAKE" ]; then
- $make clean install
- else
+ && (if [ "$make" = "NOMAKE" ] || ! $make clean install; then
$node cli.js cache clean
$node cli.js rm npm --force --global
$node cli.js install . --force --global