summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall-repos26
1 files changed, 10 insertions, 16 deletions
diff --git a/install-repos b/install-repos
index c8792d2..7e5348e 100755
--- a/install-repos
+++ b/install-repos
@@ -34,25 +34,19 @@ for git in $REPOS; do
if [ ! -f git-receive-allow ]; then
touch git-receive-allow
fi
- if [ ! -f git-description ]; then
- touch git-description
- fi
+
+ if [ ! -f cgit-repo-rc ]; then
+ (
+ echo "repo.desc=$simple"
+ echo "repo.owner="
+ ) > cgit-repo-rc
+ fi
# Add to cgit list
(
- if [ -f cgit-repo-rc ]; then
- include=$git/cgit-repo-rc
- else
- desc=$(cat git-description)
- if [ -z "$desc" ]; then
- desc="$simple"
- fi
- echo "repo.url=$simple"
- echo "repo.path=$git"
- echo "repo.desc=$desc"
- echo "repo.owner=Stef"
- fi
- echo
+ echo "repo.url=$simple"
+ echo "repo.path=$git"
+ echo "include=$git/cgit-repo-rc"
) >> $DIR/cgit-repo-rc
fi
done