skip gitweb now
[infrastructure.git] / scripts / git-check.sh
index 290a243..80ff1cf 100755 (executable)
@@ -31,7 +31,7 @@ function fill_descriptions () {
        b=$(basename $arg .git)
        git=${b}.git
        echo -n "$git "
-       grep Unnamed $git/description && { echo -n $i "Setting.. "; echo $b > $git/description ; }
+       grep -q Unnamed $git/description && { echo -n $i "Setting.. "; echo $b > $git/description ; }
     done
     echo ""
 }
@@ -43,7 +43,7 @@ function upload_archives () {
        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]
@@ -55,6 +55,8 @@ EOF
     echo ""
 }
 
-missing_gitweb
-fill_descriptions $(ls *.git)
-upload_archives $(ls *.git)
+# missing_gitweb
+args="$@"
+[[ -z "$args" ]] && args=$(ls -d *.git)
+fill_descriptions $args
+upload_archives $args