Changeset 518


Ignore:
Timestamp:
05/20/2011 11:05:35 (12 months ago)
Author:
joshu
Message:

confman now checks whether a directory exists before trying to import it or any files in it. Fixes #132.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/confman.in

    r517 r518  
    388388        # If we can't enter the parent directory, this will help us 
    389389        # get the info we need. 
    390         file=`$SUDO $ABSPATH $1` 
     390        if ! $SUDO [ -e $1 ]; then 
     391            echo "No such file or directory: $1" >&2 
     392            return 1 
     393        else 
     394            file=`$SUDO $ABSPATH $1` 
     395        fi 
    391396    fi 
    392397    shift 
Note: See TracChangeset for help on using the changeset viewer.