diff --git a/functions/functions b/functions/functions index 03796ec..c607bcf 100644 --- a/functions/functions +++ b/functions/functions @@ -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 }