Changeset 69


Ignore:
Timestamp:
04/13/2006 15:49:58 (6 years ago)
Author:
ccowart
Message:

Wrote in some error checking for imports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • confman/confman

    r68 r69  
    496496        fi 
    497497 
     498        # Error out when trying to import a symbolic link. 
     499        if sudo [ -L $file ] ; then 
     500                echo "$MYNAME: Error: $file is a symbolic link!" >&2 
     501                cleanexit 
     502        fi 
     503 
     504        if [ -f ${WORK_PATH}/${module}${file}${suffix} ] ; then 
     505                echo "$MYNAME: Error: $file already exists in your working" \ 
     506                     "copy of $module." 
     507                cleanexit 
     508        fi 
     509 
    498510        if sudo [ -f $file ] ; then 
    499511                eval `sudo stat -f "mode=%Mp%Lp owner=%Su group=%Sg" $file` 
Note: See TracChangeset for help on using the changeset viewer.