b=$(basename $arg .git)
git=${b}.git
echo -n "$git "
- if ! grep uploadarch $git/config ; then
+ if ! grep -q uploadarch $git/config ; then
echo -n $i "Setting.. ";
cat >> $git/config <<EOF
[daemon]
echo ""
}
-missing_gitweb
-fill_descriptions $(ls -d *.git)
-upload_archives $(ls -d *.git)
+# missing_gitweb
+args="$@"
+[[ -z "$args" ]] && args=$(ls -d *.git)
+fill_descriptions $args
+upload_archives $args