Skip to content

Commit e6bc9dd

Browse files
committed
Support dispatch packages.json to directory
1 parent 9417f63 commit e6bc9dd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build/update.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/bash
22

3+
if [ "$1" == "" ]
4+
then
5+
echo "[Usage] ./build/update.sh <dir>"
6+
exit
7+
fi
8+
39
echo "- Update git"
410
git submodule update --force
511
git pull
@@ -8,3 +14,7 @@ rm -rf cdnjs
814
cp -rf ref-cdnjs/ajax/libs cdnjs
915
echo "- Build packages.json"
1016
node build/build.js
17+
echo "- Copy packages.json to $1"
18+
cp packages.json $1
19+
20+

0 commit comments

Comments
 (0)