From: Martin Mares Date: Sun, 25 Mar 2007 17:53:03 +0000 (+0000) Subject: Added --force. X-Git-Tag: python-dummy-working~420 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=ecce4fc9ed794aa53695919ddf7ee98c60dfab70;p=eval.git Added --force. --- 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