Changeset 2425 for trunk/server


Ignore:
Timestamp:
Jun 1, 2013, 3:56:27 AM (11 years ago)
Author:
adehnert
Message:
prune-mailq: give usage message when run w/o args
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/fedora/config/etc/scripts/prune-mailq

    r2411 r2425  
    8383
    8484op=${1:-}
    85 shift
    86 case $op in
     85
     86# We want to go ahead and show the usage message if there are no args, so
     87# don't let the shift fail and end the script because of "set -e"
     88shift || :
     89
     90case "$op" in
    8791    list) list;;
    8892    show-rand) show_rand;;
Note: See TracChangeset for help on using the changeset viewer.