Fix setsettings bug where the first bits passed to clear_setting aren't getting deleted.
This commit is contained in:
parent
eb64d6d58b
commit
b99e44208f
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ function clear_setting() {
|
|||
log "Remove setting [${1}]"
|
||||
if [ ! -f "${TMP_CONFIG}.sed" ]
|
||||
then
|
||||
echo -n 'sed -i "' >${TMP_CONFIG}.sed
|
||||
echo -n 'sed -i "/^'${1}'/d;' >${TMP_CONFIG}.sed
|
||||
else
|
||||
echo -n ' /^'${1}'/d;' >>${TMP_CONFIG}.sed
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue