forked from Polymer/designer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpull-all.sh
More file actions
38 lines (30 loc) · 819 Bytes
/
pull-all.sh
File metadata and controls
38 lines (30 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
user=$1
pass=$2
#--- validate command line paramters ---
if test $# -lt 2 ; then
echo "Usage: pull-all.sh <<userName>> <<password>>"
exit 1
fi
#--- save repos with "our" code from components.list file ---
while read line
do
if [[ $line ]]; then
mv components/$line components/__$line
fi
done < components.list
read -p "Press enter to continue pull-all"
#--- update "other" components with bower
echo "start: bower update"
bower update
echo "done: bower update"
read -p "Press enter to continue pull-all"
#--- restore repos with "our" code from components.list file ---
echo "start: reset our components"
while read line
do
if [[ $line ]]; then
rm -r components/$line 2>/dev/null
mv components/__$line components/$line
bash pull-repo.sh $user $pass $line components
fi
done < components.list