]> mj.ucw.cz Git - eval.git/blobdiff - bin/mo-grab
Split installation process.
[eval.git] / bin / mo-grab
index 87d0804c78cc6c9a8bd44b69fa06cfa0dff5ef9f..ef5a44a56d823872a0e9baedf5f37e25e53ac394 100755 (executable)
@@ -1,11 +1,11 @@
-#!/bin/sh
+#!/bin/bash
 
 [ -n "$1" ] || { echo "Usage: mo-grab <tasks>" ; exit 1 ; }
 [ -f config ] || { echo "Missing config file, check cwd." ; exit 1 ; }
 set -e
 . config
 
-for user in `awk -F: </etc/passwd '{ if ($3 >= 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