Code Review
/
policy
/
engine.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Policy 1707 commit to LF
[policy/engine.git]
/
POLICY-SDK-APP
/
src
/
main
/
webapp
/
app
/
policyApp
/
CSS
/
bootstrap
/
test-infra
/
uncached-npm-install.sh
1
#!/bin/bash
2
set -e
3
cd .. # /bootstrap/
4
cp test-infra/npm-shrinkwrap.json npm-shrinkwrap.json
5
# npm is flaky, so try multiple times
6
MAXTRIES=3
7
TRIES=1
8
while ! npm install; do
9
if [ $TRIES -ge $MAXTRIES ]; then
10
exit 1
11
fi
12
TRIES=$(($TRIES + 1))
13
echo "Retrying npm install (Try $TRIES of $MAXTRIES)..."
14
done
15
rm npm-shrinkwrap.json