X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=bin%2Fmo-ev-inc;h=db77aa56f00053fd0dfbade6d087855cc744e19b;hb=d2c47625c8b5e7392c95d63b7f1a13e492d053f7;hp=47d76451f747470c2722e63f71c08277032e5dfe;hpb=e8627523c8a8cddca30e63e3213009df9ff280de;p=eval.git diff --git a/bin/mo-ev-inc b/bin/mo-ev-inc index 47d7645..db77aa5 100755 --- a/bin/mo-ev-inc +++ b/bin/mo-ev-inc @@ -1,7 +1,12 @@ #!/bin/bash -[ -n "$1" ] || { echo "Usage: mo-ev-inc " ; exit 1 ; } +[ -n "$1" ] || { echo "Usage: mo-ev-inc [--force] --" ; exit 1 ; } +force=0 +if [ "$1" == --force ] ; then + force=1 + shift +fi for user in `bin/mo-get-users` ; do for task in "$@" ; do echo -n "$user/$task: " @@ -15,6 +20,9 @@ for user in `bin/mo-get-users` ; do else O=none fi + if [ $force == 1 -a $N != none ] ; then + O=forced + fi echo -n "($O $N) " if [ $O == $N ] ; then echo OK