X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fgit-check.sh;h=290a243473e7fbb969f48da02ae41fb90cca8c4d;hb=dfa17111de9906109ce7eb57497afc85cefaa499;hp=67b2a42cc80d4dfb624e90e16e6d226578882246;hpb=898376db9558a9f9756d5db2a231ff232149769b;p=infrastructure.git diff --git a/scripts/git-check.sh b/scripts/git-check.sh index 67b2a42..290a243 100755 --- a/scripts/git-check.sh +++ b/scripts/git-check.sh @@ -14,8 +14,10 @@ function missing_gitweb () { echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx missing in gitweb (for web)" for i in $gitwebfiles; do echo -n "$i " - if [ ! -f ${i} ] ; then - echo "WARNING: IS MISSING.. " ; + if [ -f ${i} ] ; then + echo -n "OK " + else + echo -n "MISSING.. " ; fi done echo "" @@ -27,7 +29,7 @@ function fill_descriptions () { for arg in "$@" ; do # accept args like plcapi or plcapi.git b=$(basename $arg .git) - giti=${b}.git + git=${b}.git echo -n "$git " grep Unnamed $git/description && { echo -n $i "Setting.. "; echo $b > $git/description ; } done @@ -39,7 +41,7 @@ function upload_archives () { for arg in "$@" ; do # accept args like plcapi or plcapi.git b=$(basename $arg .git) - giti=${b}.git + git=${b}.git echo -n "$git " if ! grep uploadarch $git/config ; then echo -n $i "Setting.. ";