Changeset 12036


Ignore:
Timestamp:
2008-07-31T05:04:32+02:00 (10 years ago)
Author:
nbd
Message:

fix config_clear(), see #3054

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/etc/functions.sh

    r12025 r12036  
    4545        [ "$val2" = "$val" ] && return 
    4646        val="${val1## } ${val2%% }" 
     47        val="${val%% }" 
    4748        eval "export ${NO_EXPORT:+-n} -- \"$var=\$val\"" 
    4849} 
     
    108109        local SECTION="$1" 
    109110        local oldvar 
    110          
    111         export ${NO_EXPORT:+-n} CONFIG_SECTIONS="$(echo " $CONFIG_SECTIONS " | sed -e "s, $OLD , ,")" 
     111 
     112        list_remove CONFIG_SECTIONS "$SECTION" 
    112113        export ${NO_EXPORT:+-n} CONFIG_SECTIONS="${SECTION:+$CONFIG_SECTIONS}" 
    113114 
Note: See TracChangeset for help on using the changeset viewer.