silent
[infrastructure.git] / scripts / git-check.sh
index e98ec6a..551ac41 100755 (executable)
@@ -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]
@@ -56,5 +56,7 @@ EOF
 }
 
 missing_gitweb
-fill_descriptions $(ls -d *.git)
-upload_archives $(ls -d *.git)
+args="$@"
+[[ -z "$args" ]] && args=$(ls -d *.git)
+fill_descriptions $args
+upload_archives $args