Changeset 471 for trunk


Ignore:
Timestamp:
10/18/2009 20:48:09 (3 years ago)
Author:
ccowart
Message:

Adding support for a -q flag to suppress the no-op log messages.

Fixes #71

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/confsync.8

    r423 r471  
    3636.Op Fl s 
    3737.Op Fl d 
     38.Op Fl q 
    3839.Nm 
    3940.Fl h 
     
    7576The 
    7677.Fl d 
    77 option can be used to print additional debugging information. 
     78option can be used to print additional debugging information. The 
     79.Fl q 
     80can be used to quiet the log messages by suppressing the "System is up to date" 
     81messages. 
    7882.Pp 
    7983When launched with 
  • trunk/confsync.in

    r467 r471  
    4545 
    4646FORCE=false 
     47QUIET=false 
    4748sleep_mode=false 
    48 while getopts "fsdh" OPT 2>&4 ; do 
     49 
     50while getopts "fqsdh" OPT 2>&4 ; do 
    4951    case $OPT in 
    5052        f)  FORCE=true ;; 
    5153        s)  sleep_mode=true ;; 
    5254        d)  DEBUG=true ;; 
     55        q)  QUIET=true ;; 
    5356        h)  print_help 0;; 
    5457        *)  print_help 1;; 
     
    128131        conf_cleanExit 1 
    129132    elif ! $FORCE && [ $tar_revision -le $sys_revision ] ; then 
    130         echo "System is up to date." | conf_logger 
     133        $QUIET || echo "System is up to date." | conf_logger 
    131134        conf_cleanExit 0 
    132135    fi 
Note: See TracChangeset for help on using the changeset viewer.