X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=mop%2Fadmin%2Fmo-grab.sh;h=8bbc8fb76da62a58c46a3769718016bd7205c032;hb=e31fdee08ae5debcddff74c6f2340592314e7913;hp=9ce2f19139914fe301dce166dc7dbb6665ca74c9;hpb=fc833e30d9b1315ffdeb780d5257e8e1bdafad43;p=moe.git diff --git a/mop/admin/mo-grab.sh b/mop/admin/mo-grab.sh index 9ce2f19..8bbc8fb 100755 --- a/mop/admin/mo-grab.sh +++ b/mop/admin/mo-grab.sh @@ -1,9 +1,11 @@ #!/bin/bash +# Grab all submits from contestants' home directories located on the +# local machine and copy them to solutions/. [ -n "$1" ] || { echo "Usage: mo-grab " ; exit 1 ; } -[ -f config ] || { echo "Missing config file, check cwd." ; exit 1 ; } +[ -f cf/mop ] || { echo "Missing config file, check cwd." ; exit 1 ; } set -e -. config +. cf/mop for user in `bin/mo-get-users` ; do echo -n "$user:"