X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fwhatnow2.sh;h=4f957e23acc7c8a4761627673789d2e7f554ab99;hp=a4a2cc5dc77469c1fd994957b19bb394e01222bb;hb=75efa1e0fba76daa240c3c8b99deaf45fbb09fde;hpb=f154b393795d008e105ad63570e1f83bcccc6243 diff --git a/uip/whatnow2.sh b/uip/whatnow2.sh index a4a2cc5..4f957e2 100755 --- a/uip/whatnow2.sh +++ b/uip/whatnow2.sh @@ -38,7 +38,7 @@ usage() exit 0 fi printhelp 1>&2 - exit $1 + exit 1 } get_editor() @@ -213,7 +213,7 @@ display() { mhaltmsg=`anno -list -component 'mhaltmsg' $mhmetafile` get_showproc - if [ -n "$mhaltmsg" ] + if [ -z "$mhaltmsg" ] then echo "no altmsg" 1>&2 exit 1 @@ -293,4 +293,7 @@ w|wh|who|whom) -V|-Ve|-Ver|-Vers|-Versi|-Versio|-Version) version $# ;; +*) + usage 1 + ;; esac