cleaning bug

This commit is contained in:
mfgbhatti 2022-02-12 16:22:38 +00:00
parent e4c6311387
commit 43a9fe28bb
1 changed files with 3 additions and 3 deletions

View File

@ -195,12 +195,12 @@ title () {
set_option() { set_option() {
# Check if option exists # Check if option exists
if grep -Eq "^${1}.*" "$CONFIG_FILE"; then if grep -Eq "^\${1}.*" "\$CONFIG_FILE"; then
# delete option if exists # delete option if exists
sed -i -e "/^${1}.*/d" "$CONFIG_FILE" sed -i -e "/^\${1}.*/d" "\$CONFIG_FILE"
fi fi
# Else add option # Else add option
echo "${1}=${2}" >>"$CONFIG_FILE" echo "\${1}=\${2}" >>"\$CONFIG_FILE"
} }
install_pkg () { install_pkg () {