X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fgit-check.sh;h=3b6ef0d689c8d8c24e78136b8ae36d4cdef5bea3;hb=0cfaba91cd301cd88c3997c1d87e2105f0bda6ff;hp=80ff1cf82312ced32db9f1b26430c65b75a59557;hpb=b4fff6e9ee95bdea4ca422bd94e3a652003d5288;p=infrastructure.git diff --git a/scripts/git-check.sh b/scripts/git-check.sh index 80ff1cf..3b6ef0d 100755 --- a/scripts/git-check.sh +++ b/scripts/git-check.sh @@ -55,8 +55,22 @@ EOF echo "" } +function check_permissions () { + echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx checking descriptions " + for arg in "$@" ; do + # accept args like plcapi or plcapi.git + b=$(basename $arg .git) + git=${b}.git + echo -n "$git " + chown -R root:onelab $git + chmod -R g+w,o-w $git + done + echo "" +} + # missing_gitweb args="$@" [[ -z "$args" ]] && args=$(ls -d *.git) fill_descriptions $args upload_archives $args +check_permissions $args