From ecce4fc9ed794aa53695919ddf7ee98c60dfab70 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 25 Mar 2007 17:53:03 +0000 Subject: [PATCH] Added --force. --- bin/mo-ev-inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- 2.39.5