Skip to content

Commit a08318d

Browse files
committed
Bootstrap upate
1 parent ef9eef5 commit a08318d

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

script/bootstrap.sh

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@ run () {
99
echo "Installing dependencies..."
1010

1111
# Running twice fixes missing
12-
npm install && npm install
12+
npm install --silent && npm install --silent
1313

1414
echo "${sha}" > "${sha_file}"
1515
}
1616

17-
run
18-
# if test -f "${sha_file}"; then
19-
# old_sha=$(cat $sha_file)
20-
# if [[ "${old_sha}" != "${sha}" ]]; then
21-
# run
22-
# fi
23-
# else
24-
# run
25-
# fi
26-
#
17+
if test -f "${sha_file}"; then
18+
old_sha=$(cat $sha_file)
19+
if [[ "${old_sha}" != "${sha}" ]]; then
20+
run
21+
fi
22+
else
23+
run
24+
fi
25+

0 commit comments

Comments
 (0)