Changeset 66


Ignore:
Timestamp:
04/12/2006 18:30:41 (6 years ago)
Author:
ccowart
Message:

And the logic to call sudo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • confman/confman

    r64 r66  
    478478function import { 
    479479        local module=$1 
    480         local file=`abspath $2` 
    481         local response usefile suffix 
     480        local response usefile suffix file 
    482481        local mode=$DEFAULT_MODE_FILE 
    483482        local owner=$DEFAULT_OWNER 
     
    487486                print_usage 1 
    488487        fi 
     488 
     489        if [ -r $2 ] ; then 
     490                file=`abspath $2` 
     491        else 
     492                # If we can't enter the parent directory, this will help us 
     493                # get the info we need. 
     494                file=`sudo abspath $2` 
     495        fi 
     496 
    489497 
    490498        # See if we're importing a singularity 
Note: See TracChangeset for help on using the changeset viewer.