Changeset 491 for trunk/confman.in


Ignore:
Timestamp:
11/11/2009 15:59:06 (2 years ago)
Author:
ccowart
Message:

Defining $sed_i_cmd that deals with OS-specific logic for whether
-i must take a flag and whether it should be a separate shell word. Also
making the use of ${sed_cmd} consistent (there were some occurrences of
sed without the variable wrapper).

Fixes #98

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/confman.in

    r490 r491  
    157157    done 
    158158    rm -f "$orig_log" 
    159     ${sed_cmd} -i '' -e "/${ignoreline}/,\$d" "$logfile" 2>/dev/null 
     159    ${sed_i_cmd} -e "/${ignoreline}/,\$d" "$logfile" 2>/dev/null 
    160160    echo "$logfile" 
    161161    return 0 
     
    529529    realpath=${dir#${WORK_PATH}/${module}} 
    530530     
    531     local directories=`echo "$realpath" | sed 's:/: :g'` 
     531    local directories=`echo "$realpath" | ${sed_cmd} -e 's:/: :g'` 
    532532    local fulldir="" 
    533533     
Note: See TracChangeset for help on using the changeset viewer.