small fixes
This commit is contained in:
parent
79c9a7de32
commit
4aa13aa61f
|
@ -94,13 +94,10 @@ setconf() {
|
|||
case "${1}" in
|
||||
add)
|
||||
cfg+=( ["${2}"]="${3}" )
|
||||
if grep -q -w "${2}" "${vars}/cfg"; then
|
||||
sed -i "/${2}/d" "${vars}/cfg"
|
||||
fi
|
||||
#if grep -q -w "${2}" "${vars}/cfg"; then
|
||||
# sed -i "/${2}/d" "${vars}/cfg"
|
||||
#fi
|
||||
echo "cfg+=( [${2}]=\"${3}\" )" >> "${vars}/cfg" ;;
|
||||
rm)
|
||||
cfg+=( [${2}]="" )
|
||||
sed -i "/${2}/d" "${vars}/cfg" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue