X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=bin%2Fmo-grab;h=9ce2f19139914fe301dce166dc7dbb6665ca74c9;hb=d2c47625c8b5e7392c95d63b7f1a13e492d053f7;hp=87d0804c78cc6c9a8bd44b69fa06cfa0dff5ef9f;hpb=fe4b8313decf67677bd852cf61987a4e34e291bb;p=eval.git diff --git a/bin/mo-grab b/bin/mo-grab index 87d0804..9ce2f19 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 @@ -19,7 +19,7 @@ for user in `awk -F: = 21000 && $3 < 30000) print $1; }' done echo else - echo " No .submit directory" + echo " ---" fi done chown -R $EVAL_USER solutions