A stab at fixing the make-cgit list script.
This commit is contained in:
parent
c6783d0391
commit
8d70839c02
1 changed files with 7 additions and 6 deletions
|
@ -6,16 +6,17 @@
|
||||||
# Looking for git repos.
|
# Looking for git repos.
|
||||||
#
|
#
|
||||||
newfile=`mktemp`
|
newfile=`mktemp`
|
||||||
|
target=/srv/git/repositories
|
||||||
|
|
||||||
ls > $newfile
|
ls $target > $newfile
|
||||||
cd /srv/git/repositories/
|
for d in `ls $target`; do
|
||||||
for d in `ls`; do
|
if [ ! -L $target/$d ] && [ -d $target/$d ]; then
|
||||||
if [ ! -L $d ] && [ -d $d ]; then
|
for f in `ls $target/$d/`; do
|
||||||
for f in `ls $d`; do
|
echo "$d/$f" >> $newfile;
|
||||||
echo $d/$f >> $newfile;
|
|
||||||
done;
|
done;
|
||||||
fi;
|
fi;
|
||||||
done;
|
done;
|
||||||
|
|
||||||
mv -Z $newfile /srv/git/pkgs-git-repos-list
|
mv -Z $newfile /srv/git/pkgs-git-repos-list
|
||||||
chown apache:apache /srv/git/pkgs-git-repos-list
|
chown apache:apache /srv/git/pkgs-git-repos-list
|
||||||
chmod 644 /srv/git/pkgs-git-repos-list
|
chmod 644 /srv/git/pkgs-git-repos-list
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue