X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=bin%2Fmo-grab;h=ef5a44a56d823872a0e9baedf5f37e25e53ac394;hb=8784ed78c5f8e37469eddc00fee49d70ae80afbb;hp=bfb3fceaaa5657fcbf0dc377846a5f9e7215fd84;hpb=308a44ae11648afb6c20a2ececf01461c469f7f0;p=moe.git diff --git a/bin/mo-grab b/bin/mo-grab index bfb3fce..ef5a44a 100755 --- a/bin/mo-grab +++ b/bin/mo-grab @@ -1,11 +1,11 @@ -#!/bin/sh +#!/bin/bash [ -n "$1" ] || { echo "Usage: mo-grab " ; exit 1 ; } [ -f config ] || { echo "Missing config file, check cwd." ; exit 1 ; } set -e . config -for user in `awk -F: = 21000 && $3 < 30000) print $1; }'` ; do +for user in `bin/mo-get-users` ; do echo -n "$user:" H=`eval echo ~$user`/.submit if [ -d $H ] ; then @@ -22,3 +22,5 @@ for user in `awk -F: = 21000 && $3 < 30000) print $1; }' echo " No .submit directory" fi done +chown -R $EVAL_USER solutions +chmod -R a+r solutions