-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathupdate
More file actions
executable file
·13 lines (13 loc) · 465 Bytes
/
update
File metadata and controls
executable file
·13 lines (13 loc) · 465 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
die() { echo $1; exit 1; }
git checkout master && git pull || die "failed to pull main repo"
[ -e 'externals' ] || mkdir externals
cd externals
echo 'riscoss-risk-modeling
riscoss-data-collector
riscoss-analyser' | while read repo
do
[ -e "./${repo}/.git" ] || rm -rf "./${repo}/" 2>/dev/null;
[ -e "./${repo}/" ] || git clone "git://github.com/riscoss/${repo}.git";
( cd "${repo}" && git pull || die "failed to pull ${repo} subrepo" )
done