Changeset 107


Ignore:
Timestamp:
05/21/2006 15:05:46 (6 years ago)
Author:
ccowart
Message:

Some corrections to the install function.

Location:
confman
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • confman/confman

    r103 r107  
    170170        if [ -z "$*" ] ; then 
    171171                print_usage 1 
    172         elif [ ! -e $1 ] ; then 
    173                 echo File $1 not found! 
    174                 print_usage 1 
     172# This check is handled in the library. Calling on a non-existant file isn't 
     173# necessarily a syntax error. 
     174#       elif [ ! -e $1 ] ; then 
     175#               echo File $1 not found! 
     176#               print_usage 1 
    175177        else 
    176178                local msg=`mktemp -t confman` 
  • confman/confmanlib.sh

    r106 r107  
    123123        # See if it even exists 
    124124        file="${moduledir}${livefile}" 
    125         if [ ! -f $file ] ; then 
     125        if [ ! -f "$file" ] && [ -z "$1" ] ; then 
    126126                return 0 
     127        elif [ ! -f "$file" ] ; then 
     128                conf_install $module $* 
    127129        fi 
    128130 
Note: See TracChangeset for help on using the changeset viewer.