Fix setsettings bug where the first bits passed to clear_setting aren't getting deleted.

This commit is contained in:
fewtarius 2023-07-24 23:39:08 +00:00
parent eb64d6d58b
commit b99e44208f
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -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