repo.or.cz
/
girocco
/
ztw.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix updating of forked projects
[girocco/ztw.git]
/
updatecheck.sh
blob
96fcbe589d720e1868455daa9395218ddc68205e
1
#!/bin/bash
2
3
if
[
-e
/
tmp
/
gitupdatelock
];
then
4
echo
"Locked!"
>&
2
5
exit
1
6
fi
7
touch
/
tmp
/
gitupdatelock
8
9
cd
/
srv
/
git
10
find
.
-name
base_url | cut
-c
3
-
|
sed
-e
's/\/base_url$//'
|
11
while
read
dir
;
do
12
[
-e
"
$dir
"
/
.nofetch
] &&
continue
13
/
home
/
repo
/
repomgr
/
update.sh
"
${dir%.git}
"
14
done
15
16
rm
/
tmp
/
gitupdatelock