X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fgit-check.sh;fp=scripts%2Fgit-check.sh;h=e98ec6a3ff61d453fafc6a6b0c39eebe818fb1fa;hb=e1042138dc25a9ed6c4f1644663878d637c945ed;hp=290a243473e7fbb969f48da02ae41fb90cca8c4d;hpb=dfa17111de9906109ce7eb57497afc85cefaa499;p=infrastructure.git diff --git a/scripts/git-check.sh b/scripts/git-check.sh index 290a243..e98ec6a 100755 --- a/scripts/git-check.sh +++ b/scripts/git-check.sh @@ -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 "" } @@ -56,5 +56,5 @@ EOF } missing_gitweb -fill_descriptions $(ls *.git) -upload_archives $(ls *.git) +fill_descriptions $(ls -d *.git) +upload_archives $(ls -d *.git)