Changeset 64 for confman/confman


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

Separating out abspath to incorporate sudo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • confman/confman

    r63 r64  
    817817} 
    818818 
    819 function abspath { 
    820   local file="$1" 
    821   local dir 
    822   if [ -d $file ] ; then 
    823     dir=`cd $file >/dev/null; echo \$PWD` 
    824     echo "$dir" 
    825   else 
    826     dir=`cd $(dirname $file) >/dev/null ; echo \$PWD` 
    827     echo "$dir/$(basename "$file")" 
    828   fi 
    829 } 
    830  
    831819function cleanexit { 
    832820  rm -f /tmp/confman* 
Note: See TracChangeset for help on using the changeset viewer.